Repository navigation
improve(ui): keep flat-reply reactions under the reply and the reaction picker in place - #198252
Conversation
…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
|
🦞👀 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 changes before merge. What this changesThis PR places flat-reply reactions beneath their reply and keeps reaction pickers stationary while open. Example: A completed flat assistant reply has one 👍 reaction.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3dce8063a241. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +43, Tests +37, Docs 0. Total +80 across 9 files. Added test files: 0. View PR surface stats
Preflight sourceSource 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
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 13, 2026, 7:49 AM ET / 12:49 UTC (Revision 2). |
Co-authored-by: vyctorbrzezowski <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Current-head CI has completed for 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. |
…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]>
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.
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:
Grouped flat replies, at rest:
The picker jump is motion, so it is covered by the E2E assertion and measurements below rather than a still image.
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) andchat-flow.reactions.e2e.test.ts(4). The three reaction tests that encoded the old assistant placement now assert the row placement.check:control-ui-controllerspass.--mode branch --base origin/main --max-priority P2) found no actionable findings. It did not execute code.Original-head gate result:
ui:check-performance:baseshows 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:
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