Agent chat: More (…) on every message's hover row opens its right-click menu
Every message in the agent chat now has a More (…) button in its hover action row. It opens the same menu you get by right-clicking that message.
- On a prompt, More sits after Edit, in the row under the bubble.
- On an answer, More sits after Read aloud, in the footer.
- The button only appears on hover, like the rest of the row.
- The menu is the existing right-click menu (
AgentPaneView+ContextMenu.swift), shared throughfillContextMenu, and pops up anchored on the button. Nothing in the menu was added, removed or changed.
Leo, exact words (ask-5e5a05ded0): "...I need to be able to see this, like on hover. Okay, not all the time. On the left. On the left of the H messages for every single message... every single message has that kind of thing where you can, like, do stuff to it. Look at what Claude code has... These are the pin things or the functionalities that you can do. We need to have that as well..."
Leo (ask-7855a9975a): "LITERALLY WHERE DID EVERYTHING GO"
Leo (ask-6c7cc8f7af): "WHERE THE FUCK IS EVERYTHING ANYTHING"
The message actions were only reachable by right-click. This puts them on every message's hover row.
Leo-ask: ask-5e5a05ded0
Leo-ask: ask-7855a9975a
Leo-ask: ask-6c7cc8f7af
Tests (written first; the red commit 147dec181b1 fails without the change)
webviews/test/message-more-button.test.tsx:- prompts and answers each render exactly one More button;
- clicking More posts the message's menu request.
AgentPaneMoreMenuTests.swift:- the popup request is parsed, including its anchor;
- the menu built for More has the same titles as the right-click menu.
bun run checkpasses. The Swift build and tests run in this PR's CI.
Review
Codex (xhigh) review: SHIP at dcd0454da8547b95bf734b9f8ad1bb4aef46401f. It left two nits, both test-only and neither a correctness problem:
- The test fixture supplies
answerIddirectly instead of deriving it through turn shaping. - Popup placement is not tested at other zoom levels.
Localization: message.moreMenu ("More") has been added in all 21 locales.
Agent session: Air-Blue
🤖 Generated with Claude Code
![View with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v3-3x.png)
![Autofix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark-3x.png)
Need help on this PR? Tag @codesmith-bot with what you need.
Summary by cubic
Adds a More (…) button to every message's hover action row in the agent chat, opening the same menu that right-clicking that message opens. Message actions were previously only reachable via right-click.
- On a prompt, More sits after Edit in the row under the bubble; on an answer, after Read aloud in the footer; both appear only on hover, like the rest of the row.
- The menu is the existing right-click menu, shared through
fillContextMenu, and pops up anchored on the button, with no items added, removed, or changed. - The turn footer now carries its answer's row id so More targets the answer rather than the footer, and the "More" label is localized in all 21 locales.