Skip to content

fix(ui): reveal quoted messages inside folded work - #150163

Merged
steipete merged 1 commit into
mainfrom
codex/qa-collapsed-reply-reveal
Sep 16, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/qa-collapsed-reply-reveal

Conversation

@steipete

@steipete steipete commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

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 sort to toSorted lint 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.

Before: quoted source remains hidden in folded work

After: quoted source opens and is highlighted

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.

@steipete steipete self-assigned this Sep 16, 2026
@clawsweeper

clawsweeper Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: L labels Sep 16, 2026
@steipete
steipete marked this pull request as ready for review September 16, 2026 16:28
@openclaw-barnacle openclaw-barnacle Bot added the maintainer Maintainer-authored PR label Sep 16, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 16, 2026
@clawsweeper

clawsweeper Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 16, 2026, 1:24 PM ET / 17:24 UTC (Revision 2).

ClawSweeper review

What this changes

The 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
Reviewed head: 73e33d09bd16ff4a9667b19fb1c5f78954d329f8

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with convincing visual proof and meaningful regression coverage, with no actionable patch findings.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots show the source-served Control UI revealing the folded original through quote navigation with a synthetic Gateway; the supplied browser scenario also checks scrolling and highlighting. This supports the changed presentation behavior without claiming live-provider coverage.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before/after screenshots show the source-served Control UI revealing the folded original through quote navigation with a synthetic Gateway; the supplied browser scenario also checks scrolling and highlighting. This supports the changed presentation behavior without claiming live-provider coverage.
Evidence reviewed 8 items Current main still needs the fix: The fetched main revision indexes ordinary groups and run frames, and its loaded-reply handler calls revealMessage without expanding containing work.
Existing owners handle expansion and retargeting: The index expands framed or standalone work and assigns expanded standalone messages their child-row keys. The virtualizer retries against the committed row while the existing message command remains active; cancellation and disconnect still clear that command.
Inspected before and after screenshots: Both prepared images were inspected. The before image shows the quoted source hidden under folded work; the after image shows that source expanded in the transcript. The captured PR body describes the source-served browser flow with a synthetic Gateway and reports screenshot delivery in the originating chat and PR. Attachments: https://github.com/user-attachments/assets/ba6a27c9-6dcb-46d7-983a-78db9adf9275 and https://github.com/user-attachments/assets/c1f78a27-6321-4634-a36f-32383e2c1050.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

  • Resolve merge risk (P2) - The original hosted side-question timeout remains unexplained despite the reported successful diagnostic replay; its bounded hosted rerun was still pending.
Agent review details

Security

None.

PR surface

Source +52, Tests +283, Docs +2. Total +337 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 4 107 55 +52
Tests 4 472 189 +283
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 581 244 +337

Review metrics

Metric Value Why it matters
Production versus test growth Production net +52 lines; tests net +283 lines Production growth supports folded-target indexing and committed-row retargeting; test growth covers the user flow and moves existing reply coverage together.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep quote navigation within the existing transcript expansion and scroll-command lifecycle, preserving local read-only navigation and history loading.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label justifications:

  • P2: Repairs a bounded chat-navigation failure without blocking message sending or core runtime availability.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before/after screenshots show the source-served Control UI revealing the folded original through quote navigation with a synthetic Gateway; the supplied browser scenario also checks scrolling and highlighting. This supports the changed presentation behavior without claiming live-provider coverage.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after screenshots show the source-served Control UI revealing the folded original through quote navigation with a synthetic Gateway; the supplied browser scenario also checks scrolling and highlighting. This supports the changed presentation behavior without claiming live-provider coverage.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after screenshots show the source-served Control UI revealing the folded original through quote navigation with a synthetic Gateway; the supplied browser scenario also checks scrolling and highlighting. This supports the changed presentation behavior without claiming live-provider coverage.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vyctorbrzezowski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-16T16:39:47.470Z sha 73e33d0 :: needs maintainer review before merge. :: none

@steipete
steipete merged commit b4eba84 into main Sep 16, 2026
327 of 329 checks passed
@steipete
steipete deleted the codex/qa-collapsed-reply-reveal branch September 16, 2026 17:26
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant