Repository navigation
fix(ui): reveal quoted messages inside folded work - #150163
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: blocked before merge. Reviewed September 16, 2026, 1:24 PM ET / 17:24 UTC (Revision 2). ClawSweeper reviewWhat this changesThe Control UI opens folded work containing a quoted message, scrolls to the original, and highlights it, with browser coverage and documentation. Merge readiness⛔ Blocked before merge - 1 item remains This remains a useful, well-supported fix: current main still lacks the folded-source navigation behavior. No actionable correctness or security finding remains, and the maintainer-owned PR is not a cleanup candidate. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI turns session history into grouped, virtualized chat rows. Reply navigation uses message identities to expand the containing group and bring the original message into view. flowchart LR
A[Session history] --> B[Grouped transcript]
C[Click reply quote] --> D[Find original message]
B --> D
D --> E[Expand containing work]
E --> F[Resolve committed row]
F --> G[Scroll and highlight]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +52, Tests +283, Docs +2. Total +337 across 9 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep quote navigation within the existing transcript expansion and scroll-command lifecycle, preserving local read-only navigation and history loading. Do we have a high-confidence way to reproduce the issue? Yes: current source leaves folded originals unmounted when their quotes are clicked, and the supplied browser scenario directly exercises that path. This review did not execute a fresh reproduction. Is this the best way to solve the issue? Yes: the patch repairs message indexing and committed-row navigation in their existing owners without adding competing state, persistence, or APIs. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 80f31101f3b2. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
What Problem This Solves
Fixes quoted replies doing nothing when their original message is inside folded work, including sources deep in a virtualized transcript.
User Impact
Clicking a reply quote opens the relevant work group, scrolls to its original message, and highlights it. Loaded read-only views keep local navigation; unloaded sources continue through the existing history loader.
Why This Change Was Made
Reply indexing associated folded messages with their containing row but did not open the work group. Expanded standalone work also changes the target's row, so the virtualizer now retargets the current committed row while its existing message-scroll command is still active. User scrolling, newer navigation, and disconnect keep their existing cancellation ownership.
Message indexing moves together into a projection helper. Focused and retained-anchor range selection is consolidated in the existing range owner, and reply tests move together into a focused sibling file. No parallel state, retry timer, Gateway API, storage, or permission change is introduced.
Evidence
The original browser flow searches for an earlier assistant message, replies through its context menu, sends, closes search, and clicks the resulting quote. The visible-final-answer control passes, while the folded source remains absent. A separate deep-work case reproduced a second failure before committed-row retargeting was added.
The final candidate passes 85 focused tests and eight browser cases, including framed and standalone work, deep virtualized sources, history-loaded targets, and existing reply recovery siblings. UI production, page-test, and E2E types pass; the later equivalent
sorttotoSortedlint correction preserves the checked type shape. Scoped lint, styles, formatting, documentation, line and assertion guards pass. Fresh independent review of the complete final candidate found no actionable P0–P2 findings.Earlier fixture-entry, incomplete extraction, and lint failures were corrected and retained in local evidence; they are not counted as passing attempts. Browser proof uses the actual source-served UI with a synthetic Gateway, not a live provider. Hosted CI passes on the unchanged head after the single failed-job rerun described below. Both inspected synthetic screenshots were visibly delivered in the originating chat and verified rendered in this PR using the shared real Chrome profile.
Hosted CI35122075950 failed one side-question focus case in UI shard 6, which also failed the aggregate gate; all remaining jobs passed or were skipped. The test waited for a companion request that did not arrive before its unchanged deadline. Diagnostic replay first passed the 23-case file, then the exact historical CI merge (
e63a9ab73175558dbe4c58778199ceee082f393b) passed the identical 44-file/242-case shard with two workers and frozen dependencies. Passive input/focus/request tracing showed the expected question request and focus handoff. The original timeout remains unexplained: host load, Node patch version, cold-cache ordering, and instrumentation timing differ. No production or assertion changes were made for that failure. One bounded rerun of the failed hosted jobs was performed.The single failed-job rerun completed successfully on the unchanged head: CI attempt 2. The original timeout remains unexplained; this result does not establish a flake or a repaired cause.