Repository navigation
fix(ui): restore Latest after jumping to a reply’s original message - #205493
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR restores Latest after navigating to a reply’s original message by settling the reveal through the transcript’s reader policy. Example: Select the reply link on Field note 77 to reveal Field note 10 in a 78-message chat.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored PR open: it addresses a current transcript-navigation defect through the existing scroll owner, and inspection found no definite introduced production bug. Reviewed head: Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherReply navigation resolves a message into the virtualized transcript; the offset observer translates its final viewport position into follow state and Latest visibility. flowchart LR
A[Reply attribution link] --> B[Reply navigation]
B --> C[Transcript message reveal]
C --> D[Virtualizer scroll destination]
D --> E[Transcript offset observer]
E --> F[Reader follow policy]
F --> G[Latest button]
Technical reviewBest possible solution: Keep reveal settlement in the existing offset observer and reuse the established reader policy to preserve history position and restore Latest. Do we have a high-confidence way to reproduce the issue? Current main retains a message-navigation command without settling reader policy, matching the reported missing Latest button; the body also records a parent-commit browser failure, but this review ran no target code. Is this the best way to solve the issue? The patch makes a focused repair at the shared reveal and offset owners, handles synchronous and smooth arrival, and preserves existing end-follow policy without adding configuration or persistence. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against bf3729e40c48. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +25, Tests +49. Total +74 across 3 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 25, 2026, 1:37 PM ET / 18:37 UTC. |
|
Merged via squash.
|
What Problem This Solves
In the Control UI, opening a reply’s original message can take you far back in the chat while the transcript still treats you as following the latest message. Once the highlight fades, the Latest button can be unavailable.
User Impact
You can read the original while new messages arrive, then use Latest to jump back to the end. Opening a message at the end of the chat keeps new messages in view.
Why This Change Was Made
The transcript now records the destination when it finds the original message bubble. When the active scroll reaches that destination, it updates the reader’s position using the same policy as manual scrolling. This also handles smooth scrolling and a message that is already in position.
Evidence
Hosted validation
All nine Chromium reply-attribution cases passed, including the return to Latest with reduced and normal motion. Both real-Gateway shards built the runtime and Control UI. Chromium results
The background-work test timed out at 120 seconds while observing the child’s in-flight startup response. Main recorded the same test, stage and timeout. Knip’s script and full-tree reports flagged the two known Parallels preflight exports. Its production report passed. The aggregate retained these failures. Gateway job · Main comparison · Dependency job
A separate mounted Chromium journey using this head and the empty-search fix returned to the same original message at exactly the same height after closing Find. Clicking Latest then reached the physical end. The signed-head Chromium suite and the mounted journey used a mocked Gateway. They recorded actions and positions. The successful browser job did not publish screenshots or video of the reveal in a shipped UI.