anomalyco / anomalyco/opencode

User-question option text cannot be selected or copied

Open
#39,867 0 comments 0 reactions 1 assignee View on GitHub

@Hona is already working on this.

Since Jul 31, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

User-question option text cannot be selected or copied in the browser UI.

The shared button style sets user-select: none, so option labels in the question dock are not selectable. Child-level overrides are insufficient; the option button itself needs user-select: text.

Expected: Users can drag-select and copy question option label text (e.g. Minimal).

Actual: Pointer drag does not select option text; window.getSelection() stays empty / non-selectable.

Plugins

None relevant.

OpenCode version

dev (local)

Steps to reproduce
  1. Open a session in the app UI where a user-question request dock is shown (options with labels such as Minimal).
  2. Attempt to select option label text with a physical mouse drag across the option.
  3. Check whether the selection contains the option label (e.g. via window.getSelection()).
Screenshot and/or share link

Local verification evidence (plan):

  • Focused Playwright E2E in packages/app/e2e/regression/session-request-docks.spec.ts performs a mouse drag across the option label and asserts selected text contains Minimal (after fix; pre-fix CSS blocks selection).
  • Manual agent-browser verification: physical pointer drag selected Minimal in window.getSelection().
  • Screenshot: /tmp/opencode/20260729_user-question-selection-verified.png (local path).

Root cause: shared button CSS user-select: none; scoped override needed on [data-slot="question-option"] in packages/session-ui/src/components/message-part.css.

Operating System

Linux

Terminal

N/A (browser UI)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.