Skip to content

fix(workbench): keep plain user messages selectable - #7098

Merged
Colafornia merged 1 commit into
apache:rust-previewfrom
Colafornia:fix/user-message-text-selection
Nov 20, 2026
Merged

Colafornia merged 1 commit into
apache:rust-previewfrom
Colafornia:fix/user-message-text-selection

Conversation

@Colafornia

@Colafornia Colafornia commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Summary

#6951 split SkillMessage into markdown, token and plain renders, and the plain branch lost the userSelect: 'text' the shared text carried. Markdown user messages stay selectable because MarkdownBody renders under a selectable view, but a user message without Markdown syntax renders as a bare Text with no userSelect and 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 a selectable view and is not Some(false). The plain branch satisfied neither, while the assistant branches satisfy both, and the quote block in the same bubble already sets userSelect: '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.
  • Walked the render paths: plain is the only branch of SkillMessage/MessageRow without a selectability declaration; layout, hover actions, MessageCopy (reads the stored message) and in-place edit (rendered instead of SkillMessage) do not depend on it.
  • No automated test: selection in the desktop renderer is only observable by dragging in the native host and reading the clipboard, which costs a preview fixture and a native case of its own. Say the word and I will add one.

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:

  • No generative tool made a substantive contribution
  • Generative tooling made a substantive contribution

Tool(s) and scope: Maka (this agent) diagnosed the regression and authored the change and this description; the commit carries a Generated-by: Maka trailer.

Checklist

  • Tests cover the change and fail without it
  • Format, typecheck and the affected suites pass locally

Formatting passed; just typecheck and the suites were left to CI.

Does this PR entail a change in behavior?

  • Yes — described under Summary above
  • No

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
Colafornia force-pushed the fix/user-message-text-selection branch from 75eefe2 to d69e403 Compare November 20, 2026 15:41
@Colafornia
Colafornia marked this pull request as ready for review November 20, 2026 15:42
@Colafornia
Colafornia merged commit 64a5c6b into apache:rust-preview Nov 20, 2026
1 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant