Skip to content

Library: a push to the other kind's library aims the store before the page image is taken - #570

Merged
GLinnik21 merged 1 commit into
mainfrom
library-push-fix
Oct 9, 2026
Merged

GLinnik21 merged 1 commit into
mainfrom
library-push-fix

Conversation

@GLinnik21

Copy link
Copy Markdown
Collaborator

What the reader saw

Open a Library of the other kind than the one last shown (TV Shows visited, back Home, press Movies) with everything cached: an empty page with a frozen spinner for about 10 frames (longer on the TV while poster uploads are queued), then the whole grid in one frame. A same-kind revisit is fine. Shipped since #178 (held-image page transitions).

Root cause

The page transition freezes the destination as one image on the frame it mounts. The Library only learned which library to show after that frame: the store select came from its first Tick and LibraryCmd::Enter a frame after that. If the store still pointed at the other kind, the image was ground, chrome and a spinner, held through the dip-in and until the page is quiescent.

Per-frame (host, real bridge::frame, nav_tab, PageDip, LibraryScreen, PageImage::plan)

Other kind, both warm, before:

ms dip image alpha Library
3936 floor, CAPTURE 0.00 section 2 (Shows), loading, 0 tiles
3952-4080 in (9 frames) 0.00 -> 0.98 image unchanged; behind it section 1, 120 tiles
4096 live 1.00 120 tiles in one frame

After: the floor frame captures section 1 with 120 tiles at full page fade, so the image carries the grid for the whole dip and the handover has nothing to pop. Same kind, warm was already this.

Fix

nav_tab aims the store at the pressed kind a dip-out ahead (Bridge::aim_library), only when the Library is not already on top and the store is not already on a library of that kind (the reader's last pick of that kind stays; an unconditional select broke retired_library_entry_seeds_its_previous_section_card_and_viewport). The target is a single function, DirectoryView::kind_address, which the page's own first-Tick select now uses too, so the bridge and the page cannot disagree; the page's later select is the same command on a store already there.

Tests: a_warm_library_push_captures_the_pressed_library_with_its_tiles (red on main: the floor image shows section 2 with 0 tiles (loading=true, fade 1.00) for 10 frames, then section 1 with 120 tiles in one frame) and aiming_a_library_moves_the_store_only_across_kinds (cross-kind moves, same kind selects nothing). LibraryScreen::probe_content is cfg(any(test, feature = "test-support")).

Not fixed here

  • A first visit whose listing lands while the image is up (fast LAN server, the mock): the reveal fade runs behind the held image and the tiles appear in one frame.
  • Search: it mounts its fade on ScreenEvent::Mount, so its capture is at alpha 0 (by reading only).

Both are a page-image / quiescence design question (transition.rs, dispatch.rs, xfade.rs), undecided, left alone.

Site film

The film changes where the storyboard enters a library of another kind than the store's current one: tiles under the dip instead of a spinner.

Gates (committed tree)

  • make check: ==== check: 78 steps — all ok
  • cargo +nightly check --lib --no-default-features: clean
  • make check-replay: 3 fixtures, 6 replays, 0 failures
  • plxnative-modules lib (hostsim): 702 passed; 0 failed; plx_screens lib: 1188 passed; 0 failed

No pixels have been seen on the TV or the simulator yet.

🤖 Generated with Claude Code

… page image is taken

Opening a Library of the other kind than the one last shown (Shows visited, back
Home, press Movies), everything cached, froze the destination as an image on the
frame it mounts, but the Library only learned which library to show a frame
later (store select from its first tick, Enter a frame after that). The image
was an empty page with a still spinner, held through the whole dip-in, then the
full grid appeared in one frame. Shipped since #178.

nav_tab now aims the store at the pressed kind a dip-out ahead (Bridge::aim_library),
only when the Library is not already on top and the store is not already on a
library of that kind, so the reader's last pick of that kind stays. The target is
one function, DirectoryView::kind_address, shared with the page's own select.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@GLinnik21
GLinnik21 merged commit 16c2ddf into main Oct 9, 2026
18 checks passed
@GLinnik21
GLinnik21 deleted the library-push-fix branch October 9, 2026 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant