Repository navigation
feat(ui): scope participant message controls to their message - #160612
Conversation
A reply now carries one line with the author avatar and name instead of a quoted excerpt. Assistant replies show it when they answer an older message or when the conversation is shared; the author is never guessed, a reply to the current message resolves only through the run it started, reserved rows never change height, and a confirmed missing original shows Original message unavailable. Selecting the name scrolls to the original.
|
🦞👀 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. Reviewed September 30, 2026, 2:01 AM ET / 06:01 UTC (Revision 5). ClawSweeper reviewWhat this changesThe branch makes Control UI participant-message actions follow each message on hover, focus, and touch, and adds individual footers for earlier messages on phones. Merge readiness✅ Ready for maintainer review The merged companion PR covers reply attribution, but current main still lacks message-scoped participant controls. The prior behavioral finding is repaired and the requested test-cost measurement is documented; this PR remains useful. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI turns Gateway chat history into grouped message bubbles and action footers. Its renderer, pointer handler, and styles determine which message’s existing reply and copy controls are visible and usable. flowchart LR
A[Gateway chat history] --> B[Grouped messages]
B --> C[Chat renderer]
C --> D[Desktop action rows]
C --> E[Phone message footers]
F[Hover focus or tap] --> G[Message disclosure]
G --> D
G --> E
D --> H[Reply and copy actions]
E --> H
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +216, Tests +266. Total +482 across 14 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep one set of native actions bound to each message key in the chat renderer, with message-specific disclosure and responsive layouts covered by browser interactions. Do we have a high-confidence way to reproduce the issue? Not applicable as a feature review. Current-main source and the before capture establish group-level disclosure; the after capture shows the requested phone interaction. Is this the best way to solve the issue? Yes. The branch extends the existing chat renderer, interaction handler, and styles, and its browser cases exercise the message-specific behavior without adding another action owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a77224141f5e. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
Actions on a participant message reveal with that message on hover, focus or touch, instead of with the whole group, and the final action follows the final bubble. On mobile each earlier message in a group gets its own footer with the author, time and actions; hidden footer details keep the revealed footprint so revealing them never moves the transcript, and the transcript row widens its paint clip so revealed 44px targets are not cut off. Participant names in footers keep their identity tint as links.
869aa19 to
2783c1b
Compare
Keep the existing participant-footer and reply-line design. Preserve independent touch and keyboard disclosure through the hover guard, including wide touchscreens and reply-wrapped messages. Co-authored-by: vyctorbrzezowski <[email protected]>
Preserve the reviewed 14-file child patch and contributor ancestry. Resolve stacking conflicts against the reviewed parent baseline; retain the approved name-only reply line and per-message mobile footers. Co-authored-by: vyctorbrzezowski <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Addressed the remaining test-cost finding in the PR body: the expanded chat-reply-attribution E2E file passed 4/4 cases with one worker, 39.75 s command wall time and 8.605 s file execution. Wall time includes isolated build/browser setup. No code or design changes were needed. The earlier CI preflight used a cached pre-retarget merge with base565090; one documented close/reopen attached fresh CI to the unchanged head and corrected main merge ref. |
|
Merged via squash.
|
The participant message control regression coverage added by #160612 pushed chat-transcript-render.test.ts to 1001 lint-counted lines (limit 1000). Move its coherent metadata, timestamp, copy/reply, and search-control cases into chat-transcript-message-controls.test.ts. Reuse transcript support, share the unchanged DOM lookup helper, and preserve isolated test routing. All moved and remaining test bodies retain their original bytes. Proof on base 3801005: - Before: core stripes 1, 2, 3, 5 clean; stripe 4 only the max-lines error. - After: all five type-aware core lint stripes pass with --threads=1. - pnpm tsgo:ui passes; both import-cycle checks report 0 cycles. - oxfmt on all four touched files and git diff --check pass. - Vitest: 47 before; 41 remaining plus 6 moved, all passing afterward. - New file with --maxWorkers=1: 9.80s wall, about 0.38s test time. - Codex local autoreview through P2: scoped-clean, no actionable findings.
…aw#160612) * feat(ui): replace the chat reply quote card with a Replying to line A reply now carries one line with the author avatar and name instead of a quoted excerpt. Assistant replies show it when they answer an older message or when the conversation is shared; the author is never guessed, a reply to the current message resolves only through the run it started, reserved rows never change height, and a confirmed missing original shows Original message unavailable. Selecting the name scrolls to the original. * refactor(ui): keep reply preview types in a leaf module * feat(ui): scope participant message controls to their message Actions on a participant message reveal with that message on hover, focus or touch, instead of with the whole group, and the final action follows the final bubble. On mobile each earlier message in a group gets its own footer with the author, time and actions; hidden footer details keep the revealed footprint so revealing them never moves the transcript, and the transcript row widens its paint clip so revealed 44px targets are not cut off. Participant names in footers keep their identity tint as links. * fix(ui): hide a 1:1 reply line whose original has no author or run Co-authored-by: vyctorbrzezowski <[email protected]>
The participant message control regression coverage added by openclaw#160612 pushed chat-transcript-render.test.ts to 1001 lint-counted lines (limit 1000). Move its coherent metadata, timestamp, copy/reply, and search-control cases into chat-transcript-message-controls.test.ts. Reuse transcript support, share the unchanged DOM lookup helper, and preserve isolated test routing. All moved and remaining test bodies retain their original bytes. Proof on base 0e7061b: - Before: core stripes 1, 2, 3, 5 clean; stripe 4 only the max-lines error. - After: all five type-aware core lint stripes pass with --threads=1. - pnpm tsgo:ui passes; both import-cycle checks report 0 cycles. - oxfmt on all four touched files and git diff --check pass. - Vitest: 47 before; 41 remaining plus 6 moved, all passing afterward. - New file with --maxWorkers=1: 9.80s wall, about 0.38s test time. - Codex local autoreview through P2: scoped-clean, no actionable findings.
Companion to #150549, now landed. This PR targets main and preserves contributor ancestry by merging the landed parent rather than replacing the branch history.
What Problem This Solves
In shared chats, participant actions revealed for the whole group instead of the selected message, and earlier phone messages lacked their own footer.
User Impact
Each participant message owns its actions on hover, focus and touch. On phones, each earlier message retains its own author/time/actions footer. Tapping another message transfers actions directly; tapping the same one again dismisses them. Earlier actions also work on wide no-hover tablets.
The chosen design is retained: name-only reply lines, avatars, connectors, identity-tinted footer links, colors, typography, spacing and responsive layout. Hidden details retain their footprint; 44 px touch targets remain reachable without moving the transcript. No protocol, configuration, storage or migration changes.
Why This Change Was Made
The existing renderer and interaction owner bind disclosure to the selected bubble. Hover-only styling is separated from focus/touch styling so the build’s hover guard does not disable those input paths. No replacement overlay or duplicate controls were added.
Evidence
ui/src/e2e/chat-reply-attribution.e2e.test.tspassed 4/4 cases, 39.75 s command wall time and 8.605 s file execution, usingOPENCLAW_VITEST_MAX_WORKERS=1and--maxWorkers=1on the published head. Wall time includes isolated build/browser setup. The three viewport scenarios protect distinct desktop, phone and no-hover tablet interactions that unit tests alone cannot prove.Synthetic conversation fixtures and Chromium touch emulation are not native-device or live-provider proof.
Before
Tapping the second participant message after the first hides the actions.
After
Actions transfer to the second message without changing its design. Same synthetic conversation, 390×1000 viewport, dark theme, fixed clock and scroll position. Later refinements affect unshown search/system/forwarded boundaries, not this layout or interaction.
Worked on by
Work sessions