Skip to content

fix(ui): duplicate add-reaction button after reacting to a message - #178065

Merged
roboclaw-bot merged 1 commit into
mainfrom
fix/reaction-row-hide-add-btn
Oct 20, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
fix/reaction-row-hide-add-btn

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: a reacted transcript message shows two add-reaction buttons — one next to the reaction chips and another in the hover action row underneath.

User Impact

User impact: once a message has a reaction, the only add-reaction button is the one beside the reaction chips. Messages without reactions keep the add-reaction button in the hover action row, as before.

Why This Change Was Made

The reaction chip row renders its own picker whenever reactions exist, but the action row kept rendering a second picker unconditionally. The action row now renders its picker only while the message has no reactions (hasActionRowReactionPicker), and the same predicate decides whether a user footer has any actions to show. Removing the last reaction brings the action-row button back.

Evidence

Mocked Control UI (ui-e2e), assistant message with one 👍 reaction, hovered.

Before — add-reaction button beside the chip and in the action row:

Before: duplicate add-reaction button

After — only the button beside the chip remains:

After: single add-reaction button beside the chip

After, no reactions — action-row button unchanged:

After: unreacted message keeps the action-row button

  • pnpm test ui/src/pages/chat/components/chat-message-reactions.test.ts ui/src/pages/chat/components/chat-message.test.tsx --maxWorkers=1: 91 passed, 8.8s wall. The new transition test and the updated picker-count assertions fail on the original source (3 failures) and pass with the fix.
  • ui/src/e2e/chat-flow.reactions.e2e.test.ts (updated: the footer picker is used on an unreacted message, then must detach once the reaction lands): passed, 17s wall.
  • UI typecheck (tsgo -p tsconfig.ui.json), oxlint and oxfmt on changed files: clean. check:changed is otherwise green on this diff; its remaining reds (max-lines ratchet, core shard root budget, VideoGenerationProviderOptionType dead export) are in files this PR does not touch.
  • Autoreview (Codex, P0): scoped-clean.

Work sessions

@clawsweeper

clawsweeper Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 20, 2026 04:54
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) October 20, 2026 04:58
@roboclaw-bot
roboclaw-bot merged commit e20f553 into main Oct 20, 2026
137 checks passed
@roboclaw-bot
roboclaw-bot deleted the fix/reaction-row-hide-add-btn branch October 20, 2026 05:02
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant