Skip to content

fix(ui): keep peer identity stable when actions appear - #126287

Merged
vyctorbrzezowski merged 2 commits into
mainfrom
brzezowski/multiparty-action-position
Aug 20, 2026
Merged

vyctorbrzezowski merged 2 commits into
mainfrom
brzezowski/multiparty-action-position

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Aug 19, 2026 •

Copy link
Copy Markdown
Member

Closes #126239

What Problem This Solves

Revealing reply and rewind actions on a peer message moved that peer's name and timestamp horizontally, making participant identity jump during hover, keyboard focus, and touch interaction.

Why This Change Was Made

The shared user-footer renderer placed actions before identity for both the current user and peers. That order is correct for the existing right-aligned current-user footer, but on the left-aligned peer footer the newly visible in-flow actions displaced the identity by 60 px.

renderMessageGroup and the grouped-message footer styles now keep the existing current-user branch intact while giving peers an identity-first footer with a reserved action footprint. Mobile peer actions retain their own row and align to the logical trailing edge. Assistant rendering and existing message spacing are unchanged.

User Impact

Peer identity remains stationary when actions appear across short and long names, light and dark themes, desktop and mobile layouts, LTR and RTL direction, hover, focus, and touch. Current-user actions keep their existing order and trailing alignment.

Production delta: +48 / -24 (+24 net). Tests: +168 / -10 (+158 net).

Visual Evidence

Captured remotely from the real Control UI mock route. “Before” is base 755dad74d1fcaf4e22ee61e029a385207b7d251a; “In this PR” is exact pushed head a0cd5602ef6c2cb7245de2630c2dd071ef2b8ce9. In both themes, the before frame shows reply/rewind preceding and shifting Colin / just now; the proposed frame keeps identity fixed and reveals actions after it.

Full context

Theme Before In this PR
Light Before, light theme, peer identity shifted by revealed actions In this PR, light theme, peer identity stable with actions trailing
Dark Before, dark theme, peer identity shifted by revealed actions In this PR, dark theme, peer identity stable with actions trailing

Peer footer detail

Theme Before In this PR
Light Before peer footer detail in light theme Stable peer footer detail in light theme
Dark Before peer footer detail in dark theme Stable peer footer detail in dark theme

Evidence

  • AWS Crabbox run_cfe8d86133d5: the regression scenario failed on the base as intended; the peer name moved from x=385 to x=445 when actions appeared.
  • AWS Crabbox run_9fc5e7099cc6: final-head changed-file gate passed, and the focused attributed-identity E2E passed 2/2 across hover, focus, RTL, mobile row/trailing alignment, long names, and preserved current-user behavior.
  • AWS Crabbox run_ab06556b0fa7: exact-head visual run confirmed a0cd5602ef6c2cb7245de2630c2dd071ef2b8ce9, reproduced the 60 px base shift, passed the candidate E2E 2/2, and produced the inspected light/dark before/after captures above.
  • Focused owner unit coverage passed 199/199 remotely in run_271b825aeee2.
  • Recursive OpenCode review found one mobile trailing-alignment issue, which was fixed in a0cd5602ef6c2cb7245de2630c2dd071ef2b8ce9; the fresh follow-up review completed with no actionable findings and git diff --check clean.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Aug 19, 2026
@clawsweeper

clawsweeper Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui scripts Repository scripts size: S maintainer Maintainer-authored PR labels Aug 19, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 Aug 19, 2026
@clawsweeper

clawsweeper Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 20, 2026, 8:59 AM ET / 12:59 UTC.

ClawSweeper review

What this changes

The branch moves peer reply and rewind actions after sender metadata and adds responsive rules so revealing those controls does not shift the peer identity.

Regression provenance

Possible regression — probable (reproduction; reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Patch is correct with no actionable defect found. The latest head still has in-progress exact-head checks and, as a member-authored maintainer-labeled PR, needs normal human merge handling. Likely related people: Peter Steinberger (recent footer-refactor contributor; medium confidence).

Priority: P2
Reviewed head: a0cd5602ef6c2cb7245de2630c2dd071ef2b8ce9

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-boundary repair with strong browser-level coverage and no actionable correctness finding.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The PR provides before/after Control UI screenshots and cited final-head mocked-Gateway browser evidence for hover, focus, touch, RTL, long-name, and responsive layouts.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The PR provides before/after Control UI screenshots and cited final-head mocked-Gateway browser evidence for hover, focus, touch, RTL, long-name, and responsive layouts.
Evidence reviewed 8 items Current-main behavior: Current main still renders user footer actions inside the metadata container before the sender name and timestamp, matching the reported peer-layout failure.
Owner-boundary repair: The PR creates the user action fragment once, renders it after peer metadata only for peers, and leaves own-message ordering intact.
Responsive layout coverage: Peer desktop footers retain a static hidden footprint, while the touch layout hides unrevealed details and places revealed actions on a trailing wrapped row.
Findings None None.
Security None None.

Live Verification

Entry: /chat/main

Result: FAIL (partial) — step 2 wait_for .chat-group--peer .chat-sender-name: locator.waitFor: Timeout 15000ms exceeded.

Steps:

  • PASS goto /chat/main
  • FAIL wait_for .chat-group--peer .chat-sender-name — locator.waitFor: Timeout 15000ms exceeded.

How this fits together

Control UI projects transcript message groups into a footer containing sender metadata and message actions. The renderer and responsive CSS determine whether hidden controls reserve space or alter the visible chat layout when revealed.

flowchart LR
  A[Transcript projection] --> B[Grouped message renderer]
  B --> C[Peer identity metadata]
  B --> D[Reply and rewind actions]
  C --> E[Responsive footer layout]
  D --> E
  E --> F[Stable chat transcript]
Loading

Before merge

  • Resolve merge risk (P1) - Required checks for the current head are still in progress in the review context; merge only after that exact head is green.
  • Resolve merge risk (P1) - The bug fix has a net production increase of 24 lines; its added rules are tied to distinct desktop footprint, touch wrapping, and focus-visible layout states, so avoid expanding the scope beyond the covered behavior.
  • Complete next step (P2) - The member-authored PR has the protected maintainer label and needs normal human merge handling after its current-head checks complete.
Agent review details

Security

None.

PR surface

Source +24, Tests +158. Total +182 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 2 48 24 +24
Tests 2 168 10 +158
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 216 34 +182

Review metrics

Metric Value Why it matters
Production versus test delta production +48/-24 (net +24); tests +168/-10 (net +158) The production growth is limited to peer-footer ownership and responsive layout rules; the larger test change directly exercises the visible geometry regression.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the renderer as the sole owner of peer footer ordering, retain the responsive CSS only for the covered desktop and touch states, and merge after exact-head checks complete.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep the renderer as the sole owner of peer footer ordering, retain the responsive CSS only for the covered desktop and touch states, and merge after exact-head checks complete.

Do we have a high-confidence way to reproduce the issue?

Yes. Current-main source places peer actions before sender metadata in the persistent footer, and the PR’s browser test exercises the resulting hover, focus, RTL, and touch geometry path.

Is this the best way to solve the issue?

Yes. Moving peer actions at the footer renderer boundary and reserving their layout footprint is preferable to runtime measurement or interaction-specific compensation.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 584e750c167d.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR provides before/after Control UI screenshots and cited final-head mocked-Gateway browser evidence for hover, focus, touch, RTL, long-name, and responsive layouts.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR provides before/after Control UI screenshots and cited final-head mocked-Gateway browser evidence for hover, focus, touch, RTL, long-name, and responsive layouts.

Label justifications:

  • P2: This repairs a bounded Control UI interaction and layout regression without data, security, or availability impact.
  • 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): The PR provides before/after Control UI screenshots and cited final-head mocked-Gateway browser evidence for hover, focus, touch, RTL, long-name, and responsive layouts.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR provides before/after Control UI screenshots and cited final-head mocked-Gateway browser evidence for hover, focus, touch, RTL, long-name, and responsive layouts.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR provides before/after Control UI screenshots and cited final-head mocked-Gateway browser evidence for hover, focus, touch, RTL, long-name, and responsive layouts.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Blame identifies commit 4fd208f as introducing the current chat footer renderer and stylesheet structure that owns this behavior. (role: major refactor author; confidence: medium; commits: 4fd208fc6064; files: ui/src/pages/chat/components/chat-message-group.ts, ui/src/styles/chat/grouped.css)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Wait for the required checks attached to a0cd560 to finish green before merging.

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-08-19T10:00:53.046Z sha 8c9855c :: needs changes before merge. :: [P1] Preserve right alignment for user action footers
  • reviewed 2026-08-19T10:25:28.613Z sha 4ce74e4 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-19T10:45:57.385Z sha 314817d :: needs maintainer review before merge. :: none
  • reviewed 2026-08-19T11:30:29.639Z sha 314817d :: needs maintainer review before merge. :: none

@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review August 19, 2026 10:29
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Exact-head CI is green on 314817dc7435539eaef9017dac65ca6e60aa96c9. The first run of checks-node-compact-small-1 hit the known unrelated cron timeout tracked in #123653; its failed-job rerun passed. UI E2E, changed checks, build, and mock HMR proof are recorded in the PR body.

@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

ClawSweeper rank-up moves are complete: exact-head required CI is green on 314817dc7435539eaef9017dac65ca6e60aa96c9, and origin/main was refreshed to 4af09d4961c9a2db802ac78209da77cdc022e445; no intervening main commit touched the five changed paths, and git merge-tree --write-tree HEAD origin/main completed without conflicts. ClawSweeper reports no actionable findings. Autoreview remains intentionally deferred until explicit landing authorization.

@clawsweeper clawsweeper Bot added 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. labels Aug 19, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/multiparty-action-position branch from 314817d to a0cd560 Compare August 20, 2026 12:53
@openclaw-barnacle openclaw-barnacle Bot removed the scripts Repository scripts label Aug 20, 2026
@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. labels Aug 20, 2026
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Land-ready verification for a0cd5602ef6c2cb7245de2630c2dd071ef2b8ce9:

  • Exact-head CI: 159/159 check-runs reconciled, no pending/failing runs; openclaw/ci-gate succeeded.
  • ClawSweeper: exact-head review found no actionable defect; its only Rank-up move was to await exact-head CI, now satisfied.
  • Remote behavior proof already attached to the PR: base failure run_cfe8d86133d5; exact-head E2E/check gate run_9fc5e7099cc6; exact-head visual proof run_ab06556b0fa7; focused owner tests run_271b825aeee2 (199/199). The light/dark before/after captures in the PR body were inspected and are bound to this head.
  • Native landing flow passed review-init, artifact initialization/validation (READY FOR /prepare-pr, zero findings), and OPENCLAW_TESTBOX=1 scripts/pr prepare-run 126287. Prepare mode was hosted_exact_or_recent_parent; the remote branch and prep tree both resolve to the exact PR head, so no push was needed.
  • Surface: production +48/-24 (net +24); tests +168/-10 (net +158). The production growth is confined to renderer ownership and desktop/touch layout rules.
  • Known proof gap: ClawSweeper's generic /chat/main probe did not mount the peer fixture. The accepted exact-head mock-Gateway browser runs and screenshots cover the changed peer path, including hover, focus, RTL, touch/mobile, long names, and current-user behavior.

No rebase was performed; current main has no intervening change on the four touched paths and GitHub reports the PR mergeable.

@vyctorbrzezowski
vyctorbrzezowski merged commit 5e6b29d into main Aug 20, 2026
159 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/multiparty-action-position branch August 20, 2026 13:30
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 21, 2026
* fix(ui): keep peer identity stable when actions appear

* fix(ui): keep mobile peer actions trailing
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 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: M 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.

[Bug]: Multiparty message actions shift sender identity on reveal

1 participant