Skip to content

fix: retain trace image records across index refreshes - #5009

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4942
Nov 1, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-4942

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The trace journey's wheel gesture clears the remembered thread-walk position, as #4332 deliberately requires. Its following t therefore selects the saved-button thread rather than the frame thread. Assert that first landing, then take the next t walk 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

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
@leaf-agent
leaf-agent merged commit 703d54d into main Nov 1, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4942 branch November 1, 2026 22:21
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.

Trace image comment navigation cannot find its expected image datum

1 participant