anomalyco / anomalyco/opencode

text selection is cleared after messages_page_up/down

Open
#47,632 1 comment 0 reactions 1 assignee View on GitHub

@simonklee is already working on this.

Since Sep 6, 2026.

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

Description

Description

I disable auto copying function of opencode TUI with OPENCODE_EXPERIMENTAL_DISABLE_COPY_ON_SELECT=true opencode, so that the text selection can persist. When I scroll inside the terminal with mouse wheel, the text is still selected. However, if I scroll the page with keybinding messages_page_up/messages_page_down, the text selection is gone. I think messages_page_up/messages_page_down is a fast way to navigate historical message, but I still need some anchor point (such as the selected text) for alignment of different section. So I hope messages_page_up/messages_page_down can preserve the text selection, just like scrolling by wheel.

Plugins

No response

OpenCode version

1.18.29

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Ubuntu 24.04

Terminal

Konsole

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.