Repository navigation
fix(workbench): keep plain user messages selectable - #7098
Merged
Colafornia merged 1 commit intoNov 20, 2026
Merged
Conversation
apache#6951 split SkillMessage into markdown, token and plain renders and dropped the userSelect: 'text' the shared text carried. A markdown user message is still selectable through MarkdownBody's selectable view, but a message without Markdown syntax renders as a bare Text that is selectable neither by itself nor as part of a selection area, so dragging over it selects nothing. Restore userSelect: 'text' on the plain branch. Generated-by: Maka
Colafornia
force-pushed
the
fix/user-message-text-selection
branch
from
November 20, 2026 15:41
75eefe2 to
d69e403
Compare
Colafornia
marked this pull request as ready for review
November 20, 2026 15:42
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.
Summary
#6951 split
SkillMessageinto markdown, token and plain renders, and the plain branch lost theuserSelect: 'text'the shared text carried. Markdown user messages stay selectable becauseMarkdownBodyrenders under aselectableview, but a user message without Markdown syntax renders as a bareTextwith nouserSelectand no selection area around it, so dragging over it selects nothing.On macOS a text only takes part in a selection when
AttributedText::selectable == Some(true)on its own, or when it sits in aselectableview and is notSome(false). The plain branch satisfied neither, while the assistant branches satisfy both, and the quote block in the same bubble already setsuserSelect: 'text'— inside one user bubble the quoted text was selectable and the body was not.The fix restores
userSelect: 'text'on the plain branch, which is the behavior before #6951 for both the desktop and terminal idioms.Verification
biome check products/maka/workbench/app/SkillMessage.tsx— clean.SkillMessage/MessageRowwithout a selectability declaration; layout, hover actions,MessageCopy(reads the stored message) and in-place edit (rendered instead ofSkillMessage) do not depend on it.Behavior change
Right-clicking the body of a plain user message now opens AppKit's Copy / Select All / Look Up menu instead of Maka's message menu, as right-clicking markdown user messages, assistant text and quoted text already does. Copy and Edit stay one click away in the hover row.
AI use
Select exactly one:
Tool(s) and scope: Maka (this agent) diagnosed the regression and authored the change and this description; the commit carries a
Generated-by: Makatrailer.Checklist
Formatting passed;
just typecheckand the suites were left to CI.Does this PR entail a change in behavior?