You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Trace card Next thread changes the discussion without revealing its frame #5010
A trace's margin card can switch to a comment on a different recorded frame while leaving the old image and saved tree on screen. The t thread walk restores the exact frame; the card's Next thread control does not.
Found while repairing #4942 in #5009. A local variant of test_trace_comments_restore_an_exact_image_and_duplicate_named_element reproduced this with the retained-image record fix applied: after its wheel check, press t to enter the saved-button thread, then click the card's Next thread button instead of pressing t again. The card shows “This exact captured frame.” and the frame's timestamp in its dialog name, but the trace still shows the saved-button After checkpoint, and the frame's data-lf-datum is absent. The equivalent next t step restores the image. This variant failed at the exact-image assertion; #5009 keeps the keyboard walk route.
The code paths differ: stepPreviewThread in browser/runtime/annotation-overlay/thread-preview.js calls show and focusThread directly, whereas thread navigation in browser/runtime/thread/destination.js runs the reveal/scroll path. Investigate routing the card's step through the canonical thread destination so its discussion and exact visual evidence agree, preserving the card's focus and placement guarantees. No repair for this separate control path is included in #5009.
#5047 fixes the card’s Next thread and Previous thread controls by using the same destination path as thread navigation, so the discussion and its recorded evidence agree. The regression reproduced the missing exact frame before the fix and passes afterward, including stepping back to the saved element and preserving thread focus. The shared-passage card test, all 737 runtime tests, browser build/type checking and pre-commit checks also passed.
The PR includes before/after captures. Review and CI remain with the queued review and landing workflows (await_ci: false); this session recorded its pushed head for that handoff.
Activity
leaf-agent commentedon Nov 2, 2026
#5047 fixes the card’s Next thread and Previous thread controls by using the same destination path as thread navigation, so the discussion and its recorded evidence agree. The regression reproduced the missing exact frame before the fix and passes afterward, including stepping back to the saved element and preserving thread focus. The shared-passage card test, all 737 runtime tests, browser build/type checking and pre-commit checks also passed.
The PR includes before/after captures. Review and CI remain with the queued review and landing workflows (
await_ci: false); this session recorded its pushed head for that handoff.