Skip to content

feat(ui): scope participant message controls to their message - #160612

Merged
roboclaw-bot merged 8 commits into
openclaw:mainfrom
vyctorbrzezowski:feat/chat-participant-controls
Sep 30, 2026
Merged

roboclaw-bot merged 8 commits into
openclaw:mainfrom
vyctorbrzezowski:feat/chat-participant-controls

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

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

  • Independent autoreview of the child-only delta is scoped-clean at P0–P2. The remaining 14-file patch is identical after integrating the landed parent; the three stacking conflicts were resolved against the reviewed parent baseline without changing the design. Verified behavioral findings were fixed; a suggestion to remove the intentional per-message mobile footers was rejected to preserve the approved design.
  • Combined chat/library verification passed 8,064 tests across 477 files. Later attribution-boundary refinements passed 199 focused tests and final combined owner regressions.
  • Production-bundle browser coverage passed 60 cases across attribution, identity, actions, streaming and recovery. After integrating the landed parent, 57 browser cases across participant controls, identity, message actions, streaming runtime budgets and model controls passed again (81.17 s); 89 focused component/layout tests and UI plus all UI-test typechecks also passed.
  • Expanded E2E single-worker cost: ui/src/e2e/chat-reply-attribution.e2e.test.ts passed 4/4 cases, 39.75 s command wall time and 8.605 s file execution, using OPENCLAW_VITEST_MAX_WORKERS=1 and --maxWorkers=1 on 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.
  • Controls were exercised at 1440 px desktop, 390 px phone and 820×1180 no-hover tablet: consecutive taps, same-bubble dismissal, keyboard focus, native reply activation, reply-wrapped messages, stable geometry and 44 px hit areas.
  • UI and UI-test typechecks, source i18n, CSS lint, architecture, formatting, production build and bundle budgets pass. Hosted CI remains independently enforced by the landing workflow.

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.

Before: second participant message has no revealed 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.

After: actions transfer to the second participant message

Worked on by

  • @vyctorbrzezowski — design and original implementation; credited in repair commits.

Work sessions

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.
@clawsweeper

clawsweeper Bot commented Sep 28, 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.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 30, 2026, 2:01 AM ET / 06:01 UTC (Revision 5).

ClawSweeper review

What this changes

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

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Direct visual proof, relevant browser coverage, and repair of the prior finding make this an above-average UI patch.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The changed chat renderer, interaction handler, and styles were exercised in production-bundle Control UI browser scenarios with a mocked Gateway across desktop, phone, and no-hover tablet viewports; inspected phone before/after captures show controls transferring to the second participant message. No stored-data contract changes.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The changed chat renderer, interaction handler, and styles were exercised in production-bundle Control UI browser scenarios with a mocked Gateway across desktop, phone, and no-hover tablet viewports; inspected phone before/after captures show controls transferring to the second participant message. No stored-data contract changes.
Evidence reviewed 7 items Current main behavior: Current main toggles disclosure on the whole group; it has no per-bubble revealed state.
Distinct introduced behavior: The introduced handler resolves the selected participant bubble before clearing disclosure, then reveals that bubble.
Responsive footer owner: The existing chat renderer now binds earlier-message footers and actions to each prepared message key at phone widths.
Findings None None.
Security None None.

How this fits together

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

Before merge

None.

Agent review details

Security

None.

PR surface

Source +216, Tests +266. Total +482 across 14 files.

View PR surface stats
Area Files Added Removed Net
Source 5 291 75 +216
Tests 9 282 16 +266
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 14 573 91 +482

Review metrics

Metric Value Why it matters
Production and test growth production +216 net lines; tests and test support +266 net lines The production growth supports responsive message footers and disclosure, while browser coverage exercises the resulting behavior.
Expanded E2E cost 4 cases; 39.75 s command wall; 8.605 s file execution The PR now states the recurring cost requested in the previous review.

Technical review

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

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P2: This is a bounded chat interaction improvement with direct user-visible benefit.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The changed chat renderer, interaction handler, and styles were exercised in production-bundle Control UI browser scenarios with a mocked Gateway across desktop, phone, and no-hover tablet viewports; inspected phone before/after captures show controls transferring to the second participant message. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed chat renderer, interaction handler, and styles were exercised in production-bundle Control UI browser scenarios with a mocked Gateway across desktop, phone, and no-hover tablet viewports; inspected phone before/after captures show controls transferring to the second participant message. No stored-data contract changes.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The changed chat renderer, interaction handler, and styles were exercised in production-bundle Control UI browser scenarios with a mocked Gateway across desktop, phone, and no-hover tablet viewports; inspected phone before/after captures show controls transferring to the second participant message. No stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • Peter Steinberger: 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 (4 earlier review cycles)
  • reviewed 2026-09-28T18:13:47.058Z sha 869aa19c1f662d0fe9bb058c51811684ad6d1eef :: blocked before merge. :: [P2] Switch revealed controls when another peer message is tapped
  • reviewed 2026-09-28T20:53:06.305Z sha 2783c1b :: blocked before merge. :: [P2] Switch revealed controls when another peer message is tapped
  • reviewed 2026-09-29T03:31:24.584Z sha fafa9a3 :: blocked before merge. :: [P2] Switch revealed controls when another peer message is tapped
  • reviewed 2026-09-30T05:49:34.938Z sha eb7497e :: needs changes before merge. :: [P3] Record the expanded E2E file's measured cost

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.
@vyctorbrzezowski
vyctorbrzezowski force-pushed the feat/chat-participant-controls branch from 869aa19 to 2783c1b Compare September 28, 2026 20:45
vyctorbrzezowski and others added 5 commits September 29, 2026 03:22
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]>
@roboclaw-bot
roboclaw-bot changed the base branch from feat/chat-reply-attribution-strip to main September 30, 2026 05:43
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 30, 2026 05:44
@roboclaw-bot

Copy link
Copy Markdown
Collaborator

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Sep 30, 2026
@roboclaw-bot roboclaw-bot reopened this Sep 30, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator

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.

@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 30, 2026
@roboclaw-bot
roboclaw-bot merged commit 5b0d4bf into openclaw:main Sep 30, 2026
264 of 272 checks passed
@roboclaw-bot

Copy link
Copy Markdown
Collaborator

Merged via squash.

steipete added a commit that referenced this pull request Sep 30, 2026
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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 1, 2026
…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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 1, 2026
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.
@vyctorbrzezowski
vyctorbrzezowski deleted the feat/chat-participant-controls branch October 1, 2026 17:29
@vyctorbrzezowski vyctorbrzezowski self-assigned this Oct 25, 2026
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 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: 🦞 diamond lobster Very strong PR readiness with only minor 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.

2 participants