Repository navigation
fix(ui): duplicate add-reaction button after reacting to a message - #178065
Merged
Merged
Conversation
Co-authored-by: Patrick-Erichsen <[email protected]>
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
roboclaw-bot
marked this pull request as ready for review
October 20, 2026 04:54
roboclaw-bot
enabled auto-merge (squash)
October 20, 2026 04:58
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 21, 2026
…ons (openclaw#178065) Co-authored-by: Patrick-Erichsen <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
After — only the button beside the chip remains:
After, no reactions — action-row button unchanged:
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.tsgo -p tsconfig.ui.json), oxlint and oxfmt on changed files: clean.check:changedis otherwise green on this diff; its remaining reds (max-lines ratchet, core shard root budget,VideoGenerationProviderOptionTypedead export) are in files this PR does not touch.Work sessions