Skip to content

improve(ui): keep flat-reply reactions under the reply and the reaction picker in place - #198252

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
openclaw/crisp-claw-4
Nov 13, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
openclaw/crisp-claw-4

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Reactions on flat agent replies floated far from the reply, and the reaction picker on your own messages jumped sideways when you moved the pointer into it.

User Impact

User impact: reactions on agent replies sit directly under the reply, and the reaction picker stays where it opened.

  • Flat agent replies: the reaction tab is the first item in the row under the reply. Normally it is the only visible item in that row. On hover, the name, time and actions fade in after it; the tab does not move. Replies without reactions keep the existing hover-only row.
  • Your messages: while a reaction picker is open, its row stays revealed. Before, moving the pointer into the picker collapsed the row and moved the picker about 115px sideways, and it moved back when the pointer returned to the message.
  • Bubble mode, peer and own bubbles, and forwarded replies keep the corner tab unchanged.

Why This Change Was Made

A flat reply has no bubble edge, so the corner tab was positioned from the full message width and landed far from short replies. The reaction summary now renders inside the row that already sits under each flat reply: the final footer, or the action row of an earlier message. Hover changes only visibility in that row, not layout. Elsewhere the summary stays on the bubble, so each message shows it exactly once.

The picker opens in the top layer, so hover over the picker does not keep the row's hover state, and the row's hidden layout moves the picker's anchor. Rows now also stay revealed while any control inside them reports aria-expanded="true".

Original feature evidence

Real Control UI components with synthetic messages, dark theme, Chromium. "Before" is current main.

Flat reply, hovered:

Before After
Before: the tab sits far right of a short reply, after the footer After: the tab leads the row; name, time and actions follow it

Grouped flat replies, at rest:

Before After
Before: each tab floats mid-column After: each tab sits under its own reply

The picker jump is motion, so it is covered by the E2E assertion and measurements below rather than a still image.

  • New E2E assertion: open the add-reaction picker on your own message, move into it, and the picker keeps its position. It fails without the CSS fix (749 → 864px) and passes with it.
  • Focused tests pass: chat-message-reactions.test.ts, chat-message-group.solid.test.tsx, chat-pane-offline-metadata.test.ts (46), chat-transcript-controller.test.tsx (34), chat-message-reactions.browser.test.tsx (4, Chromium) and chat-flow.reactions.e2e.test.ts (4). The three reaction tests that encoded the old assistant placement now assert the row placement.
  • UI typecheck, targeted oxlint and stylelint, and check:control-ui-controllers pass.
  • Visual QA used real components with synthetic messages (Chromium, Linux): dark theme at 1100px and 390px, single and grouped flat replies, bubble mode, and an own message. The tab's position is identical at rest and on hover.
  • Local autoreview (--mode branch --base origin/main --max-priority P2) found no actionable findings. It did not execute code.

Original-head gate result: ui:check-performance:base shows total CSS −79 B gzip and −179 B raw, but chat boot JS +124 B gzip. The base already exceeds that ceiling, so only 64 B is allowed. This needs an explicit decision before merge.

Gaps: WebKit and Firefox were not run locally. No real Gateway was exercised. Assistant messages inside a non-final run-frame fragment keep the bubble corner tab because they have no row under them.

Worked on by

Work sessions

Linked for team reference; these sessions aren’t public.

Maintainer verification

Corrected the completed-run rendering path: its final answer's reaction summary was present in both the inner message and the outer footer. The existing final action-owner key now identifies the single summary moved to the footer. Earlier messages and bubble-mode summaries stay with their existing owner. Also fixed the reaction test's TypeScript union access without changing production types.

On Tempbook, the original head displayed two copies; the corrected head displays one. Both versions were exercised through the real Control UI with the same synthetic Gateway scenario, at 1280px dark and 390px light. The screenshots below show the incoming PR before this repair and the corrected candidate.

Validation of the repair:

  • 35 focused reaction/group renderer tests and 34 isolated transcript-controller tests passed.
  • The completed-frame regression failed before the repair and passed afterward; bubble mode passed in both.
  • Four Chromium E2E cases and four WebKit browser cases passed, including picker positioning, keyboard activation, scrolling, and saved reactions.
  • UI production and all UI-test typecheck shards passed. Scoped lint passed with existing warnings.
  • Independent review of the full change and repair found no actionable P0–P2 issues.

The browser tests use the existing synthetic Gateway; this is not a live server reaction-persistence claim. The original size-budget measurement above predates the repair; current-head CI remains the broad gate.

Repair before/after

Before repair - duplicate completed-reply reactions - desktop

After repair - one completed-reply reaction - desktop

Before repair - duplicate reactions - phone

After repair - one reaction - phone

roboclaw-bot and others added 2 commits November 13, 2026 11:56
…on picker in place

Flat agent replies have no bubble edge, so their reaction summary now leads the row under the reply and stays put while the hover-only name, time and actions fade in after it. An open reaction picker keeps its message row revealed, so moving the pointer into the picker no longer collapses the row and carries the picker sideways.

Co-authored-by: vyctorbrzezowski <[email protected]>
…on picker in place

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 1930f334-7905-40ab-9196-949f090934a9
@clawsweeper

clawsweeper Bot commented Nov 13, 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: S labels Nov 13, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 13, 2026
@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR places flat-reply reactions beneath their reply and keeps reaction pickers stationary while open.

Example: A completed flat assistant reply has one 👍 reaction.

  • Before: The reaction tab sits far across the message column.
  • After: One reaction tab leads the footer directly beneath the reply.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The functional repair is focused and the duplicate-summary defect is resolved, but the confirmed boot-budget failure and incomplete interaction proof prevent readiness.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Flat-reply reactions appear detached from their message, and moving into an own-message reaction picker makes it jump sideways.
Reason: The maintainer-authored direction improves reaction placement and fixes unstable interaction without adding configuration or changing stored reactions.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this maintainer-directed repair remains useful, and the duplicate-summary finding is fixed, but current-head CI confirms the boot-size finding remains.

Priority: P2
Reviewed head: dd26a33b207e78e0fcd988cde2722f43f6233486

Before merge

  • Reduce introduced chat boot growth to the existing allowance (P2) - The current-head performance check confirms the earlier budget finding remains: chat boot JS gzip rises from 1,310,309 B to 1,310,450 B, an increase of 141 B. Because the base already exceeds the cap, the enforced allowance is 64 B, leaving this candidate 77 B over its permitted limit. Reduce the added rendering plumbing while preserving the placement and single-summary fixes; the earlier reaction PR's exception does not authorize this increase.

Findings

  • [P2] Reduce introduced chat boot growth to the existing allowance — ui/src/pages/chat/components/chat-message-group-view.tsx:85-96

Tests

  • Missing end-to-end proof: Provide a short recording or inspectable browser trace showing the pointer entering an own-message reaction picker without moving it, with sensitive values redacted.
Agent review details

How this fits together

The Control UI renders saved messages and reaction summaries through message groups and run frames; existing picker callbacks send reaction changes through the pane owner.

flowchart TD
  A[Messages and reaction summaries] --> B[Agent run frame]
  B --> C[Message group]
  C --> D[Bubble or footer summary]
  D --> E[Reaction picker]
  E --> F[Existing pane reaction owner]
Loading

Technical review

Best possible solution:

Keep single-summary ownership and stable picker disclosure while reducing the added rendering code to fit the existing boot allowance.

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

Current-main source and supplied before captures establish the misplaced flat-reply tab; the picker regression records the row-collapse trigger, but no target code was executed during this review.

Is this the best way to solve the issue?

The change fixes placement and disclosure at their existing rendering owners, and the final action-owner key provides the smallest complete repair for duplicate completed-frame summaries.

Full review comments:

  • [P2] Reduce introduced chat boot growth to the existing allowance — ui/src/pages/chat/components/chat-message-group-view.tsx:85-96
    The current-head performance check confirms the earlier budget finding remains: chat boot JS gzip rises from 1,310,309 B to 1,310,450 B, an increase of 141 B. Because the base already exceeds the cap, the enforced allowance is 64 B, leaving this candidate 77 B over its permitted limit. Reduce the added rendering plumbing while preserving the placement and single-summary fixes; the earlier reaction PR's exception does not authorize this increase.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 3dce8063a241.

Provenance checked

  • Flat-reply reaction placement changes intended behavior with a stated reason (0d602b3: The earlier design consolidated reactions onto bubble corners and used clearance beneath flat replies to avoid footer contents.)
  • Run-frame and retained message rendering keeps the original intent (5dd456a: Retained Solid frames preserve message identity and keep domain ownership outside rendering; the repair uses the existing final action owner.)
  • Per-message footer disclosure keeps the original intent (0981885: Actions and timestamps must remain scoped to their own message and reachable while traversing its toolbar.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm ui:check-performance:base c41c00d
  • pnpm test ui/src/pages/chat/components/chat-message-reactions.test.ts ui/src/pages/chat/components/chat-message-group.solid.test.tsx
  • node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-flow.reactions.e2e.test.ts
  • git diff --check

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 0981885 adds ui/src/styles/chat/grouped.css:580 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 098188527dab; files: ui/src/styles/chat/grouped.css)

PR surface

Source +43, Tests +37, Docs 0. Total +80 across 9 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 5 80 37 +43
Tests 3 45 8 +37
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 126 46 +80

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Production versus test changes Production +80/−37 lines; tests +45/−8 lines The additions coordinate existing summary owners and extend existing regressions without introducing another state owner.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a focused chat-layout repair with limited user impact and a confirmed performance-gate blocker.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-13T12:15:11.729Z sha 7f5fb74 :: needs changes before merge. :: [P2] Suppress the run-frame bubble summary when rendering its footer summary | [P2] Reduce the introduced chat boot growth to the permitted allowance

Reviewed November 13, 2026, 7:49 AM ET / 12:49 UTC (Revision 2).

@vyctorbrzezowski

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 13, 2026
@vyctorbrzezowski

Copy link
Copy Markdown
Member

Current-head CI has completed for dd26a33b207e78e0fcd988cde2722f43f6233486. The only failing substantive check is the size budget: chat boot JavaScript grew by 141 bytes relative to the measured base, exceeding its 64-byte allowance by 77 bytes. The maintainer has approved this budget exception. All other completed test, type, lint, and security checks passed.

The repair and current before/after evidence are in the PR body: completed flat replies now render one reaction summary, and the open picker's anchor remains stable.

@vyctorbrzezowski
vyctorbrzezowski merged commit 60aead2 into main Nov 13, 2026
96 of 99 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/crisp-claw-4 branch November 13, 2026 13:04
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 14, 2026
…on picker in place (openclaw#198252)

Keep reactions under flat agent replies and preserve the reaction picker's anchor while it is open.

Render the completed run's final reaction summary once, using the existing action owner; preserve bubble, peer, forwarded and earlier-message reactions.

Validated with focused rendering and transcript tests, Chromium flows, WebKit interactions and inspected before/after captures.

Co-authored-by: vyctorbrzezowski <[email protected]>
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 P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants