Repository navigation
fix: retain trace image records across index refreshes - #5009
Merged
Merged
Conversation
Keep the retained Viewer bound to the new delivery image so its data-origin path addresses the current index. Align the exact-evidence journey with #4332: wheeling clears the remembered walk position, and hidden image parts do not establish a fixed thread order. Select the drawing explicitly through Threads and Show on page. Closes #4942
This was referenced Nov 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The trace journey's wheel gesture clears the remembered thread-walk position, as #4332 deliberately requires. Its following
ttherefore selects the saved-button thread rather than the frame thread. Assert that first landing, then take the nexttwalk step to return to the frame comment, preserving the exact-image assertion and the intended walk behavior.Once that assertion reaches index refresh, the retained Viewer still holds an image object from the previous delivery. Looking it up in the new image array produces index -1 and an invalid data-origin path. Reusing the Viewer now also replaces its image record with the current delivery's record. The viewer, its zoom and its DOM remain retained.
The later drawing-return check now selects its thread through Threads → Show on page rather than assuming hidden image parts occupy a fixed position before the timeline in the thread walk.
Validation: the original journey failed on current main; after correcting its first navigation step, the refresh assertion exposed the invalid-origin error. With both repairs, the complete journey passes (48.84 s). The existing thread-walk regression passes, all 737 runtime tests pass, and the browser type check, Ruff and whitespace checks pass.
Closes #4942 — automated triage