Skip to content

fix: close out the leftover items from the 1.2.0 release-candidate QA sweep - #2070

Merged
l0gicgate merged 39 commits into
lgse:mainfrom
wmfeht:fix/2016-release-candidate-qa-sweep-leftovers
Nov 6, 2026
Merged

l0gicgate merged 39 commits into
lgse:mainfrom
wmfeht:fix/2016-release-candidate-qa-sweep-leftovers

Conversation

@wmfeht

@wmfeht wmfeht commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

Description

Closes out what #2027 and #2030 left open from the 1.2.0 release-candidate QA sweep, plus the two P2 test-suite bugs. Each item was fixed and reviewed on its own branch, then merged here. A final review of the combined branch found no merge problems.

#2016 Browser polish (the 3 deferred items)

  • Columns follows the selection when you come back to it:
    • With nothing selected, no child column reopens and the breadcrumb ends at the current folder.
    • If a single folder was selected in List or Icons, it opens as the child without taking focus. This only happens when "Mirror columns selection" is on, because with mirroring off Columns never opens a child from a selection. A child that is no longer selected closes either way.
    • A remote navigation that is still being checked is left alone.
  • Grouped List first visits start on the first row shown, by any route:
    • This covers typed path, double-click, sidebar and the rest. The view stays at the top with the group heading visible.
    • The model and the view now share one set of grouping rules.
    • A pointer visit to a large folder is refocused on the first row once loading finishes. This happens only if the user hasn't touched the pane, and never on reloads or Back/Forward.
    • Up, Down, Return and Shift+arrow with no cursor follow the order shown. Grouped remote listings pick the first row once complete, not from the first batch.
  • Ctrl+K search roots follow the volume monitor (Decide global search's local-mount inclusion policy (follow-up to #532) #533): search covers Home plus only the local mounts Devices lists, using the same selection code as the sidebar. Hidden system mounts such as /var/cache/pacman/pkg are no longer scanned. Kernel network mounts that Devices lists are still searched, as before.

#2017 Operations dialogs and focus (the remaining items)

  • Undo and redo replays never offer Replace when a file meets a folder or a folder meets a file. Paste and replay now share one collision rule, and the existence check reports the item's kind.
    • When nothing can be applied, the prompt offers only Cancel and starts on it.
    • A replay where everything is skipped stays in history, as after Cancel. Before, it deleted the entry.
  • The one-frame child-column flash during a permanent delete is closed as not reproducible. The end state is correct.

#2019 Test gaps (the deferred item)

  • The test image installs libheif, so the camera-formats-preview-sandbox avif/heic variants use real AVIF and HEIC files and decode them through glycin's glycin-heif loader in the sandbox.
  • The QA magick fixture step fails if an .avif, .heic or .heif output lacks a matching ISO BMFF brand, so the gap can't silently return.

#1970 Flaky virtual-preview scrolling test

  • The cause was not stale rows in hit testing. Under CPU load, new rendered rows are first painted at an estimated one-line height, then grow when their text is measured, and the content re-anchors.
  • The test now samples only after two identical painted frames instead of sleeping for a fixed time. It still checks momentum, ordering and hit testing, and a hit-test mutation still fails it.
  • The reflow itself is now fix(preview): fast scrolling briefly shows rendered rows at one-line height, then jumps back #2068.

#1963 Test process aborts in TaskSource::finalize

  • A GIO pool thread could drop the last reference to a test's private main context, finalizing leftover spawn_local tasks off their thread.
  • test_support::PrivateContext destroys a private context's sources on its own thread when dropped. Every test uses it, and clippy now rejects MainContext::new and with_flags.
  • A scratch reproducer aborted every time before the fix and never after.
  • Production only uses the default context, so the app can't hit this. The leftover volume-lookup timer is now fix(volume): cancel the pending volume lookup's timeout when the lookup finishes #2069.

#2011 Accessible-role critical

Closed as not reproducible:

Also

Owner-approved overrides and things not verified

  • Base image: rebuilt locally once (owner consent), with Docker because Podman isn't installed here. The new image key is ecb94fc9…, which the trusted-main publisher needs to publish after merge.
  • AT-SPI runs: run on the host with GTK_A11Y=atspi (owner consent), on a private Xvfb with private session and AT-SPI buses and a throwaway HOME. The host was used because the LocalSend provider needs a real localsend binary.
  • Code health: scripts/code-health.sh was not run, because CS_ACCESS_TOKEN isn't set.
  • Not run against real hardware or services:
    • search roots against real removable media
    • the grouped remote deferred pick against a real remote share
    • scrolling a large grouped folder while it loads (checked by hand and by unit tests)
  • Scenario metadata: the new scenarios have no cost yet. The new tests have no weights in scripts/quality-durations.json.

Visual evidence

N/A. The behaviour changes (child columns on return, the first-row cursor, conflict prompt buttons) are described above and in the steps below.

How to test

  1. Columns: in Columns, open documents so its child column shows. Switch to List, press Escape to clear the selection, and switch back with Ctrl+1. Repeat, but select pictures in Icons before switching back.
  2. Grouped List: turn on grouping by file type in List. Press Ctrl+L, type a folder holding alpha.txt, beta.csv and gamma.md, and press Enter. Then double-click into a folder with several hundred mixed files.
  3. Search: on a system with a hidden btrfs subvolume such as /var/cache/pacman/pkg, press Ctrl+K.
  4. Undo replay: move data/ (a folder) and b.txt into another folder, create a file named data in the source folder, then press Ctrl+Z.
  5. AVIF/HEIC: run ./scripts/qa.sh camera-formats-preview-sandbox.

Expected result:

  1. With nothing selected, no child column reopens and the breadcrumb ends at the current folder. With pictures selected, pictures opens as the child and the parent keeps focus.
  2. The cursor lands on beta.csv, the first row shown, and the large folder stays at the top with the first group's heading visible.
  3. Searching for a file name that exists only inside the subvolume finds nothing. Files under Home and on drives listed under Devices are still found.
  4. The prompt for data offers no Replace and explains that a file and a folder can't replace one another. Skipping it still undoes the b.txt move.
  5. The avif and heic variants pass and decode real files.

Related issue

Closes #2016
Closes #2017
Closes #2019
Closes #533
Closes #1970
Closes #1963
Closes #2011

wmfeht added 30 commits November 5, 2026 18:30
Name the rule that a file and a folder never replace one another, and
that only two folders merge, as Collision::between and Collision::allows,
and keep it on the paste collision as its kinds rather than as two loose
flags. Apply to All's split of the collisions an answer covers and the
"a file and a folder can't replace one another" explanation become
helpers, so the undo and redo replay prompt can use the same rules.
No behaviour change.

Refs lgse#2017
Undo and Redo of a move asked about an item already at the destination
with Replace always offered, so a file meeting a folder of the same name
(or a folder meeting a file) could be told to replace it, and the replay
then failed that item. Apply to All with Replace carried the failure to
every such item.

The presence probe now reports whether an item it finds is a folder, a
link counting as a file, as the paste's own check does. The replay
prompt applies the paste's collision rules to the moved item and the one
in its way: it hides Replace and says why, and Apply to All with Replace
leaves those items their own prompt. A replay prompt with neither
Replace nor Keep Both starts on Skip, or on Cancel when Skip is hidden.
An item whose kind cannot be read is still offered Replace.

Refs lgse#2017
ImageMagick in the pinned image had no HEIF coder library, so it wrote
PNG bytes under .avif/.heic names. libheif from the same dated snapshot
brings the built-in aom, x265 and libde265 codecs, and also enables the
glycin heif loader that GDK Pixbuf uses inside the preview sandbox.

Refs lgse#2019
ImageMagick exits 0 and writes the input format when it lacks an encoder,
which let camera-formats-preview-sandbox pass on PNG bytes. The magick
fixture step now requires an ftyp box with the brand its extension names.

Refs lgse#2019
A GIO call started on a test's private main context keeps the context
alive from its GTask. g_task_thread_pool_thread unrefs the task after
attaching the completion idle, so the test thread can dispatch the
callback, finish and drop its context first, leaving the pool thread
with the last reference. Finalizing the context there destroyed any
spawn_local future still attached to it, and glib-rs dropped the future
on the wrong thread and aborted the whole test process.

PendingVolumeLookup::start, exercised by the adapters::volume tests, is
one such shape: its query_info_async calls run on GIO pool threads and
its timeout task outlives the lookup.

Tests now create private contexts through test_support::PrivateContext,
which destroys every source left on the context when it is dropped, on
the thread that created them. Clippy rejects glib::MainContext::new so
new tests cannot bypass it.

Refs lgse#1963
Read the whole ftyp box, including a 64-bit largesize or a box running
to the end of the file, and accept the expected brand as the major or a
compatible brand, so avis sequences and mif1-major files pass. Bytes
without a leading ftyp box, such as PNG, are still rejected. The docs
now credit glycin-heif, not a GDK Pixbuf loader, with decoding.

Refs lgse#2019
… Columns

Switching back to Columns rebuilt every column the browser still held,
so a child column the List or Icons selection had since left reopened
with its open-path fill and the breadcrumb on it.

The selection now drives the child: a child that is no longer selected
closes before the columns are rebuilt, and a lone selected folder opens
as the new child. An empty selection reopens no child, and the
breadcrumb ends at the active folder.

Refs lgse#2016
…Cancel

A replay prompt for an item meeting the other kind offers neither, and
started on Skip, which drops the item from the undo entry. Start on
Cancel instead, the one answer that never changes the history.

Refs lgse#2017
Skip with Apply to All, or skipping each conflict, left nothing to move,
and the replay then discarded its undo or redo entry, although Cancel,
which also moves nothing, keeps it. Now that an item meeting the other
kind cannot be replaced, a prompt could offer Skip where it was the
only answer besides Cancel, and so drop the entry that way.

A replay whose every conflict is skipped now keeps its entry, as Cancel
does. The prompt offers Skip, and Apply to All beside it, only while an
answer can still move something: an item already accepted, or a later
conflict that Replace can resolve. Otherwise it offers Cancel alone.
A partial replay still drops only the records it skipped.

Refs lgse#2017
A first visit by typed path, sidebar or any route that asks for the
automatic cursor picked the first entry in name order. In a grouped List
that row can sit in a later group, so the cursor landed on the visually
last file or scrolled a large folder to its middle. A double-click left
the cursor to the view and was right.

The browser now knows when its listings show file-type groups, and the
automatic pick takes the first entry of the first visible group. The
group order and the per-folder grouping rules (Recent, unsettled camera
folders) move into the app so the GTK sorter and the pick share them.

Refs lgse#2016
A grouped List publishes a large folder's rows in name order, so a
group that sorts first arrives above the row GTK focused when the first
rows came in. A pointer first visit has no cursor to hold on to, so
focus followed that row into the middle of the list. Once the listing
is complete, such a pane now focuses the first row shown.

Scrolling a grouped List to its first row also shows the heading above
it, so the automatic cursor leaves the view at the very top.

Refs lgse#2016
Opens a grouped List by typed path and by double-click on a listing
large enough to publish in chunks, and checks the first row shown takes
the cursor, then that a revisit restores the remembered one. The
grouped-first-row mutation reverts the automatic pick to name order.

Refs lgse#2016
Dropping a leftover source's future can attach another source, which a
single pass missed. Repeat from the last probed id until a pass destroys
nothing, and cover it with a task attached during the sweep while
another reference keeps the context alive.

Also disallow glib::MainContext::with_flags, word the Clippy reason for
production code too, and document that Default::default() escapes the
path check and that sources attached after the drop are leaked on
purpose.

Refs lgse#1963
…g to Columns

Following the selection on the switch back to Columns closed and opened
columns, which bumps the navigation generation, so a navigation still
validating (a remote folder opened in List) was dropped. The step now
changes nothing while a navigation is pending.

A selection made in List or Icons is not an activation, and with
"Mirror columns selection" off Columns never opens a child from a
selection, so the selected folder opens only while mirroring is on.
Closing a child the selection no longer holds stays unconditional.

Rename the step to follow_selection_on_return, extend its unit cases
(load cursor on a folder, several items without the open child, a held
validation), add mirroring-off runs to the QA scenario and rate it.

Refs lgse#2016
Focusing a pane without a cursor scrolled every List and Icons pane to
its first row, and the load-finish refocus also ran after reloads and
Back or Forward visits whose saved position a scroll had abandoned.

Focus without a cursor returns to GTK's own row again. Only a first
visit with no saved position, through to its load finishing with no
pointer, scroll, touch or key input in the pane, moves focus to the
first row shown, and only in a grouped pane with no cursor. A reload
drops the watch.

Refs lgse#2016
The automatic pick read every entry's type on the main thread, missing
the bounded type cache on large folders. A type sort already lists the
entries in group order, and under any other sort the first visible
folder leads, so only a folder-free listing not sorted by type needs
the lookups.

A grouped listing arriving in batches now picks its first row once it
is complete instead of from the first batch, and a step without a
cursor starts on the first row shown rather than the first by name.

Refs lgse#2016
Adds a typed first visit to a grouped folder large enough to publish in
chunks, and checks both large visits keep the first row and its heading
in view. Drops the grouped-first-row mutation: the behaviour is not a
critical workflow, and unit tests pin the pick.

Refs lgse#2016
Ctrl+K global search added every /dev-backed mount from the raw mount
table to the volume monitor's mounts, so it walked system subvolume
mounts such as /var/cache/pacman/pkg that Devices hides. Search roots
are now Home plus the native roots of the volumes and volume-less mounts
that Devices lists, taken from the same volume-monitor enumeration, which
the sidebar now shares. The roots are still computed on each Ctrl+K, so
mount and unmount changes apply the next time search opens.

Closes lgse#533
Refs lgse#2016
AGENTS.md rules out layout assertions. The visible check on the first
row still shows each large first visit stayed at the top; the heading
reveal was verified by hand.

Refs lgse#2016
The smooth-scrolling test sampled hit testing after fixed 20 ms
wall-clock waits. On a loaded machine GTK can paint newly mapped rows at
their estimated one-line text height before validating their layout,
then grow them a frame later, which re-anchors the list and moves later
rows down. A sample taken in that window and one taken after it read
different, but each correct, layouts, so the order check failed
depending on timing.

Wait on painted frames instead: sample after the mapped rows, their
materialization and the scroll adjustment are unchanged across two
painted frames with no ready main-context work, and drive momentum by
frame count. Hit testing itself already matches GTK's own pick.

Refs lgse#1970
Split the Devices mount selection for global search into plain-data
MountRoot and MountListing facts and a pure local_device_roots, so a
table-driven test covers volume mounts, own-row mounts, shadowed and
volume-listed mounts, pathless roots and non-native GVfs roots. A root
now counts only when it is native and has a path, as location_for_file
reads it. The sidebar shares the own-row predicate.

Drop the test-only early return from device_mount_roots; global search
is instead checked against a mount table holding fixture mounts the
volume monitor never lists, which fails if a raw mount-table step
returns.

Refs lgse#533
A parent column's load finishing, such as a monitor relist, used up the
child pane's first-visit watch, so the child's own load skipped its
refocus. The watch now records its depth and only that depth's load
ends it.

Rebuilds for relocations, truncations and mode switches also armed a
watch whenever the folder was still loading, though they are not first
visits. Only the rebuild for a navigation's new column arms one now.

The watch and the restore's input cancel share one user-input
predicate, and a unit test pins that input during the visit keeps its
load from refocusing.

Refs lgse#2016
… shown

Up with no cursor took the last entry by name, and Shift+arrow with no
cursor started from the first or last by name. In a grouped List they
now start from the last or first row shown, as Down already does.

Refs lgse#2016
present_window and the virtual preview scrolling test each requested a
frame and ran the main context until it painted, with the same
ten-second timeout. Move that wait into test_support::wait_for_paint
and use it from both; present_window keeps its assertion and messages.

Refs lgse#1970
Settling also waited for an empty main context after each paint, but
GTK always queues fresh work after a paint, so nearly every step paid
for a third frame although its rows had stopped moving after the
second. Every frame already runs all ready work before it paints, so
two equal painted frames are settled. This keeps every hit-test sample
and cuts the test from about 40 s to 30 s; update its CI weight.

Refs lgse#1970
A reload empties the column until its selection is restored, so returning
to Columns during one read an empty selection and closed a child that was
still selected.
Name the load's cursor predicates, extract the range origin and the focus
target, split the first-row table from its test, and move the ISO BMFF check
and the returning-to-Columns tests into their own modules. No behavior
changes.
@l0gicgate

Copy link
Copy Markdown
Contributor

Review and cleanup

main: b094f02e was already in the branch, so no merge was needed.

Review against the description and the linked issues. Each code claim has an implementation and a test or scenario. No reviewer comments existed. #2030's description lists 11 of 14 items of #2016, 8 of 9 of #2017 and 7 of 8 of #2019 as done, and this PR handles the rest, so the closing keywords are consistent with those descriptions. I did not re-verify the items #2030 closed. The not-reproducible closures (#2011 and the #2017 column flash) rest on the author's runs, which I did not repeat.

Fixes pushed

  • dc0bc580b fix(columns): keep the child column while its parent reloads: a reload empties the column until its selection is restored, so returning to Columns mid-reload closed a child that was still selected. returning_columns_wait_for_a_reloading_column_to_restore_its_selection failed before the fix.
  • 56980cfda style: drop comments that restate the names beside them: removed 22 comments that only labelled or paraphrased the code. Comments carrying invariants or rationale stay.
  • 6da9d770a refactor: restore the code health of the files this change touches: the PR lowered six files against main (scripts/code-health.sh hadn't been run). All six are back to their main scores, with no behavior change. The ISO BMFF check moved to tests/qa/isobmff.rs, and the returning-to-Columns tests moved to src/app/browser/tests/navigation/returning_columns.rs.

Tests removed: none. Every added test can fail on a realistic regression.

Validation

  • ./scripts/test-headless.py app::browser -- app::navigation ui::browser::transfer ui::window::devices first_visit test_support:: smooth_content_scrolling ui::browser_modes i18n::: 615 passed. This ran before the refactor commit.
  • After the refactor, ./scripts/test-headless.py app::browser::tests::navigation -- app::navigation ui::browser_modes ui::browser::transfer::tests::replay_kinds a_heif_family: 153 passed.
  • ./scripts/qa.sh --test-threads 6 on camera-formats-preview-sandbox, grouped-list-first-visit-starts-at-first-row, returning-to-columns-follows-selection, context-menu-baseline, grouped-list-keeps-file-targets, columns-return-selects-source-folder, undo-restores-completed-move, replace-restores-original-on-undo and global-search-finds-file-under-home: 16 runs passed, on a base image built locally with Podman. PR CI skips the QA job, so this is the only QA evidence for this head.
  • smooth_content_scrolling_keeps_thumb_and_hit_testing_in_document_order: passed 3 of 3 with 8 busy loops on the same 4 pinned CPUs.
  • By hand with qa-drive, step 4 of the test plan: no Replace, focus starts on Cancel, the explanation is shown, and Skip moves b.txt back and leaves the blocker alone. No GTK criticals.
  • ./scripts/quality.sh fmt and clippy: clean.
  • Not run: full quality.sh test and full qa.sh. The full Rust suite ran in CI, but QA ran only for the scenarios above. The new scenarios still have no cost.

Decisions for the owner (not changed here)

  1. Search no longer covers drives Devices hides. This is the policy Decide global search's local-mount inclusion policy (follow-up to #532) #533 asked to decide. From reading GIO's display rule, not from a test, a second internal disk mounted through fstab at /mnt/data without x-gvfs-show is also dropped, with no warning and no setting to add it back. If those disks should stay searchable, Decide global search's local-mount inclusion policy (follow-up to #532) #533's middle option (keep hidden local mounts, exclude known system paths) would do it.
  2. A replay that moves nothing keeps its entry, which also blocks older entries. With a file/folder conflict and nothing else to move, only Cancel is offered, and Ctrl+Z returns to the same entry until the obstacle is moved by hand. Skip All used to discard the entry and now keeps it too. The PR intends this, but it removes the way past such an entry.

Follow-ups outside this PR

  • From reading the code, not reproduced: on a remote grouped first visit opened by keyboard, the deferred first-row pick publishes at finish and can scroll a user who scrolled during the load back to the top. The FirstVisit guard covers only the pointer route.
  • From reading the code, not reproduced: a camera folder picks its cursor while still ungrouped, so once grouping applies the cursor may not be on the first row shown.
  • With mirroring off, a round trip through List closes a child column that differs from the selected folder, even if the selection never changed. The description says the child closes either way; noting it because it changes that setting's behavior.
  • The MIME sweep in first_in_file_groups took about 140 ms per 100k names in a debug build. It runs once, on the main thread, and only when no subfolder is visible, so it's not a blocker.

After merge: the trusted-main publisher must publish the base image for tests/container/Dockerfile. The key ecb94fc9… in the description matches this head.

CI: all required checks green at 6da9d770a; QA scenarios skipped, as on every PR.

@l0gicgate
l0gicgate merged commit 86975bf into lgse:main Nov 6, 2026
11 checks passed
wmfeht pushed a commit to wmfeht/strata-feature-map that referenced this pull request Nov 6, 2026
wmfeht added a commit to FelipeJz/strata that referenced this pull request Nov 6, 2026
Resolve conflicts with the stacked PRs (lgse#2070, lgse#1925, lgse#1924, lgse#1826,
lgse#1802) and re-home the bookmark changes in the files they split:

- keys/conflicts.rs: keep the split step_digits/fixed_top_level_key and
  give the bookmark groups no digit range;
- keys/label.rs: keep both the two-key Digits `then` and the Letters
  range;
- keys/tests.rs: take the split modules and move the Letters cases of
  catalog_bindings_use_the_canonical_key and
  every_listed_binding_has_its_own_row_in_its_maps into tests/catalog.rs;
- shortcut_footer.rs: take the split modules and move the chord panel
  refill (show while rows exist, so the ' menu appears once the saved
  letters load) into shortcut_footer/indicators.rs;
- tenxer_mode.rs: add the bookmark marks and options next to
  FolderAction;
- window/keyboard.rs: take the split key routing, keep the pending
  bookmark cancel before the tab-shortcut check, and move the focus and
  mode-exit cancels into keyboard/footer_bindings.rs;
- keymap.md: list the bookmark chords alongside `; .`;
- keyboard_dispatch.rs: declare both letter_bookmarks and list_motion.
l0gicgate added a commit that referenced this pull request Nov 7, 2026
…on (#1924)

* feat(preview): start first-time video previews at a configured position

Add a "Video preview start" percentage (0-99, default 0) under
Settings > General > Browsing, stored as `preview_video_start`. A video
preview with a known duration and no position remembered this session
seeks there once its header arrives; a remembered position from #1326
still wins, and audio, GIF, and streams of unknown length start at the
beginning.

Closes #1910

* fix(preview): add Hungarian strings and align video start clamp

* test(preview): pin the video start in the external-player handoff test

KeyboardFixture seeds the exhaustive preferences fixture, which now sets
preview_video_start to 20, so the clip opened at 20 % and the handoff
reported --start=12.000 instead of the position reached by playing.

* fix(preview): reopen a video left at its start or end at 0:00

`DecodedMedia::close` forgot the position of a video closed within its
first second or at its end, so with a non-zero Video preview start the
next open jumped to the configured percent again. Seeking back to watch
an intro, or watching to the end, was overridden on the next preview,
and the Settings description ("A video you already previewed resumes
where you left it") did not hold.

Remember such a video at 0 instead. `resume_position` still ignores
positions within the first second, so it reopens at 0:00, and
`set_start_percent` applies the configured start only to a video not
previewed earlier this session. Audio is still forgotten as before.

* fix(preview): import recall_media_position outside test builds

set_start_percent calls it in production code, so the #[cfg(test)] gate broke the non-test build.

* fix(preview): remember a video at 0:00 only when a start is configured

With the start at 0, every previewed video and GIF was stored at 0 in the
128-entry position cache, evicting real resume positions and keeping a
video skimmed at 0 from getting a start configured later in the session.

* fix(preview): start raw H.264/H.265 streams at the beginning

The helper seeks raw elementary streams by decoding up to the target, so a
configured start on a long stream could exceed the first-frame timeout.
Issue #1910 asks for these streams to start at 0.

* style(preferences): format the stored import list

* test(preview): wait for the decoder header before checking the video start

settle ticked without sleeping, so the fake stream's Prepared could arrive
after the check and the cases expecting no restart passed without
exercising the start decision.

* test(preview): cover video of unknown length in the start test

* fix(settings): drop the unlocalized percent label from the video start row

The row description already says the value is a percent of the video's length.

* test(preferences): keep only the clamping video start rows

In-range values only echoed the input; the saved fixture and the setter
persistence test already cover round-tripping.

* test(preview): wait for a scheduled restart to reach the loader in settle

A wrong restart only reaches the loader once the cancelled worker exits,
which can take longer than the fixed tick count, so the start-at-0:00
cases could pass without seeing it. start_session clears restart after
calling the loader.

* fix(preview): skip the start restart when it rounds to the first frame

A short clip at a small percent got a start before its first frame tick,
which restarted the decoder at tick 0 for nothing.

* docs(preferences): note the video start must be set when the preview opens

* test(preview): cover raw video streams ignoring the configured start

An MP4 preview starts at 20 % as a control, then > continues into a raw
H.264 stream, which must start at the beginning.

* test(preview): check the clip's start at its first frame

Waiting for the timestamp to pass 11 s relied on the settle helper's
10 s timeout to fail when the start was not applied.

* fix: close out the leftover items from the 1.2.0 release-candidate QA sweep (#2070)

* refactor(paste): share what a collision's item kinds allow

Name the rule that a file and a folder never replace one another, and
that only two folders merge, as Collision::between and Collision::allows,
and keep it on the paste collision as its kinds rather than as two loose
flags. Apply to All's split of the collisions an answer covers and the
"a file and a folder can't replace one another" explanation become
helpers, so the undo and redo replay prompt can use the same rules.
No behaviour change.

Refs #2017

* fix(undo): offer no Replace where a replayed move meets the other kind

Undo and Redo of a move asked about an item already at the destination
with Replace always offered, so a file meeting a folder of the same name
(or a folder meeting a file) could be told to replace it, and the replay
then failed that item. Apply to All with Replace carried the failure to
every such item.

The presence probe now reports whether an item it finds is a folder, a
link counting as a file, as the paste's own check does. The replay
prompt applies the paste's collision rules to the moved item and the one
in its way: it hides Replace and says why, and Apply to All with Replace
leaves those items their own prompt. A replay prompt with neither
Replace nor Keep Both starts on Skip, or on Cancel when Skip is hidden.
An item whose kind cannot be read is still offered Replace.

Refs #2017

* build(test-image): install libheif for real AVIF and HEIC files

ImageMagick in the pinned image had no HEIF coder library, so it wrote
PNG bytes under .avif/.heic names. libheif from the same dated snapshot
brings the built-in aom, x265 and libde265 codecs, and also enables the
glycin heif loader that GDK Pixbuf uses inside the preview sandbox.

Refs #2019

* test(qa): fail AVIF and HEIC fixtures that lack an ISO BMFF brand

ImageMagick exits 0 and writes the input format when it lacks an encoder,
which let camera-formats-preview-sandbox pass on PNG bytes. The magick
fixture step now requires an ftyp box with the brand its extension names.

Refs #2019

* test: drop a private main context's leftover tasks on their own thread

A GIO call started on a test's private main context keeps the context
alive from its GTask. g_task_thread_pool_thread unrefs the task after
attaching the completion idle, so the test thread can dispatch the
callback, finish and drop its context first, leaving the pool thread
with the last reference. Finalizing the context there destroyed any
spawn_local future still attached to it, and glib-rs dropped the future
on the wrong thread and aborted the whole test process.

PendingVolumeLookup::start, exercised by the adapters::volume tests, is
one such shape: its query_info_async calls run on GIO pool threads and
its timeout task outlives the lookup.

Tests now create private contexts through test_support::PrivateContext,
which destroys every source left on the context when it is dropped, on
the thread that created them. Clippy rejects glib::MainContext::new so
new tests cannot bypass it.

Refs #1963

* test(qa): accept AVIF and HEIC brands anywhere in the ftyp box

Read the whole ftyp box, including a 64-bit largesize or a box running
to the end of the file, and accept the expected brand as the major or a
compatible brand, so avis sequences and mif1-major files pass. Bytes
without a leading ftyp box, such as PNG, are still rejected. The docs
now credit glycin-heif, not a GDK Pixbuf loader, with decoding.

Refs #2019

* fix(columns): open the selected folder's child column on returning to Columns

Switching back to Columns rebuilt every column the browser still held,
so a child column the List or Icons selection had since left reopened
with its open-path fill and the breadcrumb on it.

The selection now drives the child: a child that is no longer selected
closes before the columns are rebuilt, and a lone selected folder opens
as the new child. An empty selection reopens no child, and the
breadcrumb ends at the active folder.

Refs #2016

* fix(conflicts): start a prompt with neither Replace nor Keep Both on Cancel

A replay prompt for an item meeting the other kind offers neither, and
started on Skip, which drops the item from the undo entry. Start on
Cancel instead, the one answer that never changes the history.

Refs #2017

* fix(undo): keep a replay that moves nothing in the history

Skip with Apply to All, or skipping each conflict, left nothing to move,
and the replay then discarded its undo or redo entry, although Cancel,
which also moves nothing, keeps it. Now that an item meeting the other
kind cannot be replaced, a prompt could offer Skip where it was the
only answer besides Cancel, and so drop the entry that way.

A replay whose every conflict is skipped now keeps its entry, as Cancel
does. The prompt offers Skip, and Apply to All beside it, only while an
answer can still move something: an item already accepted, or a later
conflict that Replace can resolve. Otherwise it offers Cancel alone.
A partial replay still drops only the records it skipped.

Refs #2017

* fix(list): start a grouped first visit on the first row shown

A first visit by typed path, sidebar or any route that asks for the
automatic cursor picked the first entry in name order. In a grouped List
that row can sit in a later group, so the cursor landed on the visually
last file or scrolled a large folder to its middle. A double-click left
the cursor to the view and was right.

The browser now knows when its listings show file-type groups, and the
automatic pick takes the first entry of the first visible group. The
group order and the per-folder grouping rules (Recent, unsettled camera
folders) move into the app so the GTK sorter and the pick share them.

Refs #2016

* fix(list): keep a grouped first visit at the top of the list

A grouped List publishes a large folder's rows in name order, so a
group that sorts first arrives above the row GTK focused when the first
rows came in. A pointer first visit has no cursor to hold on to, so
focus followed that row into the middle of the list. Once the listing
is complete, such a pane now focuses the first row shown.

Scrolling a grouped List to its first row also shows the heading above
it, so the automatic cursor leaves the view at the very top.

Refs #2016

* test(qa): cover the first-visit cursor of a grouped List

Opens a grouped List by typed path and by double-click on a listing
large enough to publish in chunks, and checks the first row shown takes
the cursor, then that a revisit restores the remembered one. The
grouped-first-row mutation reverts the automatic pick to name order.

Refs #2016

* test: sweep a private main context until no source is left

Dropping a leftover source's future can attach another source, which a
single pass missed. Repeat from the last probed id until a pass destroys
nothing, and cover it with a task attached during the sweep while
another reference keeps the context alive.

Also disallow glib::MainContext::with_flags, word the Clippy reason for
production code too, and document that Default::default() escapes the
path check and that sources attached after the drop are leaked on
purpose.

Refs #1963

* fix(columns): respect pending navigations and mirroring when returning to Columns

Following the selection on the switch back to Columns closed and opened
columns, which bumps the navigation generation, so a navigation still
validating (a remote folder opened in List) was dropped. The step now
changes nothing while a navigation is pending.

A selection made in List or Icons is not an activation, and with
"Mirror columns selection" off Columns never opens a child from a
selection, so the selected folder opens only while mirroring is on.
Closing a child the selection no longer holds stays unconditional.

Rename the step to follow_selection_on_return, extend its unit cases
(load cursor on a folder, several items without the open child, a held
validation), add mirroring-off runs to the QA scenario and rate it.

Refs #2016

* docs(columns): describe the child column after returning to Columns

Refs #2016

* fix(list): refocus the first row only on an untouched first visit

Focusing a pane without a cursor scrolled every List and Icons pane to
its first row, and the load-finish refocus also ran after reloads and
Back or Forward visits whose saved position a scroll had abandoned.

Focus without a cursor returns to GTK's own row again. Only a first
visit with no saved position, through to its load finishing with no
pointer, scroll, touch or key input in the pane, moves focus to the
first row shown, and only in a grouped pane with no cursor. A reload
drops the watch.

Refs #2016

* fix(navigation): pick a grouped first row without needless type lookups

The automatic pick read every entry's type on the main thread, missing
the bounded type cache on large folders. A type sort already lists the
entries in group order, and under any other sort the first visible
folder leads, so only a folder-free listing not sorted by type needs
the lookups.

A grouped listing arriving in batches now picks its first row once it
is complete instead of from the first batch, and a step without a
cursor starts on the first row shown rather than the first by name.

Refs #2016

* test(qa): check a large grouped first visit stays at the top

Adds a typed first visit to a grouped folder large enough to publish in
chunks, and checks both large visits keep the first row and its heading
in view. Drops the grouped-first-row mutation: the behaviour is not a
critical workflow, and unit tests pin the pick.

Refs #2016

* fix(search): search only the mounts the Devices sidebar shows

Ctrl+K global search added every /dev-backed mount from the raw mount
table to the volume monitor's mounts, so it walked system subvolume
mounts such as /var/cache/pacman/pkg that Devices hides. Search roots
are now Home plus the native roots of the volumes and volume-less mounts
that Devices lists, taken from the same volume-monitor enumeration, which
the sidebar now shares. The roots are still computed on each Ctrl+K, so
mount and unmount changes apply the next time search opens.

Closes #533
Refs #2016

* test(qa): drop the heading geometry checks from the grouped first visit

AGENTS.md rules out layout assertions. The visible check on the first
row still shows each large first visit stayed at the top; the heading
reveal was verified by hand.

Refs #2016

* test(preview): sample smooth scrolling only after the layout settles

The smooth-scrolling test sampled hit testing after fixed 20 ms
wall-clock waits. On a loaded machine GTK can paint newly mapped rows at
their estimated one-line text height before validating their layout,
then grow them a frame later, which re-anchors the list and moves later
rows down. A sample taken in that window and one taken after it read
different, but each correct, layouts, so the order check failed
depending on timing.

Wait on painted frames instead: sample after the mapped rows, their
materialization and the scroll adjustment are unchanged across two
painted frames with no ready main-context work, and drive momentum by
frame count. Hit testing itself already matches GTK's own pick.

Refs #1970

* test(search): cover the volume-monitor root selection directly

Split the Devices mount selection for global search into plain-data
MountRoot and MountListing facts and a pure local_device_roots, so a
table-driven test covers volume mounts, own-row mounts, shadowed and
volume-listed mounts, pathless roots and non-native GVfs roots. A root
now counts only when it is native and has a path, as location_for_file
reads it. The sidebar shares the own-row predicate.

Drop the test-only early return from device_mount_roots; global search
is instead checked against a mount table holding fixture mounts the
volume monitor never lists, which fails if a raw mount-table step
returns.

Refs #533

* fix(list): tie the first-visit watch to its navigation and depth

A parent column's load finishing, such as a monitor relist, used up the
child pane's first-visit watch, so the child's own load skipped its
refocus. The watch now records its depth and only that depth's load
ends it.

Rebuilds for relocations, truncations and mode switches also armed a
watch whenever the folder was still loading, though they are not first
visits. Only the rebuild for a navigation's new column arms one now.

The watch and the restore's input cancel share one user-input
predicate, and a unit test pins that input during the visit keeps its
load from refocusing.

Refs #2016

* fix(navigation): start Up and Shift+arrow without a cursor at the end shown

Up with no cursor took the last entry by name, and Shift+arrow with no
cursor started from the first or last by name. In a grouped List they
now start from the last or first row shown, as Down already does.

Refs #2016

* refactor(test): share the frame paint wait between test helpers

present_window and the virtual preview scrolling test each requested a
frame and ran the main context until it painted, with the same
ten-second timeout. Move that wait into test_support::wait_for_paint
and use it from both; present_window keeps its assertion and messages.

Refs #1970

* test(preview): settle the scrolling test on two equal painted frames

Settling also waited for an empty main context after each paint, but
GTK always queues fresh work after a paint, so nearly every step paid
for a third frame although its rows had stopped moving after the
second. Every frame already runs all ready work before it paints, so
two equal painted frames are settled. This keeps every hit-test sample
and cuts the test from about 40 s to 30 s; update its CI weight.

Refs #1970

* docs: describe the grouped fallback cursor and list the image's libheif separately

* style(tests): fold the PrivateContext import into the probe tests' crate block

* test(qa): refresh the context-menu baseline for the creation rows and sort button

* fix(columns): keep the child column while its parent reloads

A reload empties the column until its selection is restored, so returning
to Columns during one read an empty selection and closed a child that was
still selected.

* style: drop comments that restate the names beside them

* refactor: restore the code health of the files this change touches

Name the load's cursor predicates, extract the range origin and the focus
target, split the first-row table from its test, and move the ISO BMFF check
and the returning-to-Columns tests into their own modules. No behavior
changes.

---------

Co-authored-by: Pierre Berube <[email protected]>

* fix(uri): preserve non-ASCII URI hosts across sanitization (#2072)

Assisted-by: MiMo-V2.6-Pro

* style(preferences): drop the comment labelling the video start getter

* test(preview): split the configured start test into shorter helpers

* refactor(settings): move the video preview options into a submodule

Adding the start row pushed general.rs past CodeScene's file size limit.

---------

Co-authored-by: William Feht <[email protected]>
Co-authored-by: Pierre Berube <[email protected]>
Co-authored-by: Jeff Zhou <[email protected]>
wmfeht added a commit to wmfeht/strata-feature-map that referenced this pull request Nov 7, 2026
Sync lgse/strata#2070, #2072: Columns return, grouped first visits, search roots, replay kinds, non-ASCII URI hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment