anomalyco / anomalyco/opencode
User-question option text cannot be selected or copied
@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
- Open a session in the app UI where a user-question request dock is shown (options with labels such as
Minimal). - Attempt to select option label text with a physical mouse drag across the option.
- 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.tsperforms a mouse drag across the option label and asserts selected text containsMinimal(after fix; pre-fix CSS blocks selection). - Manual agent-browser verification: physical pointer drag selected
Minimalinwindow.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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.