You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to disable text selection and clipboard overrides? #2845
I find what opencode does with text selection and clipboard in my terminal extremely disruptive for my work process.
I would like to be able to use my OS and terminal facilities directly to select and copy from opencode, ideally, with full scrollback buffer for longer texts.
Is there an option to disable the current behavior?
This issue might be a duplicate of existing issues. Please check:
Option to not use alternate (fullscreen) screen mode #106: Option to not use alternate (fullscreen) screen mode - requests the ability to not use alternate screen mode to allow users to use their terminal emulator's scrolling, searching, and copying functionality
feat: Copy Mode for OpenCode #2755: feat: Copy Mode for OpenCode - comprehensive request for better text selection and copying functionality, addressing the limitations of current mouse-dependent selection
@agladysh currently the text copy leaves a lot to be desired, luckily the tui is currently being rewritten and almost complete! once that is done I think this should be addressed much better
Is there an option to disable the current behavior?
Please, no "much better", just leave me the exact system functionality my reflexes are honed to by decades of use
Reacted by Mariusz D., Ilya, Mikhail Lukianchenko, sgnix, Mauricio Scheffer, Wayne Walker, justinclift-prvidr, gvarph, Yosef BAYOUDE, Dave Benvenuti and 7 more
I am running opencode in a docker container. The current functionality prevents copy / paste from working as expected as opencode copies the text into the buffer of the docker container, not the host system.
Reacted by Mariusz D., Kirill Fertikov, tonsV2, Julien Viard de Galbert and Mariusz Woloszyn
@agladysh currently the text copy leaves a lot to be desired, luckily the tui is currently being rewritten and almost complete! once that is done I think this should be addressed much better
Is that still being worked on?
If it is already available, then why is this issue still open?
I'm in the same boat I use tmux and opencode's copy just doesn't work with tmux and I'm not going to change how tmux handles selecting so please just add a config to disable copy to clipboard on select.
Activity
github-actions commentedon Sep 28, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Sep 29, 2025
@agladysh currently the text copy leaves a lot to be desired, luckily the tui is currently being rewritten and almost complete! once that is done I think this should be addressed much better
don't think so
agladysh commentedon Sep 29, 2025
Please, no "much better", just leave me the exact system functionality my reflexes are honed to by decades of use
gardner commentedon Oct 9, 2025
I am looking forward to the new version!
I am running
opencodein a docker container. The current functionality prevents copy / paste from working as expected asopencodecopies the text into the buffer of the docker container, not the host system.rekram1-node commentedon Oct 9, 2025
does it work if u do (this allows you to test next version):
bun x opencode-ai@opentui
gardner commentedon Oct 10, 2025
Awesome! I'll keep testing it out. Hot take is:
It's a bit slow to startup on my machine, which may be due to an mcp server initialization.
Message Actions
Home Screen
--
Can I run it from a branch in the git repo to get the latest merges?
Thanks
rekram1-node commentedon Oct 10, 2025
I think everytime u run the command it grabs the latest one, there is a snapshot on every push i think
still wip
CarloWood commentedon Mar 14, 2026
@rekram1-node wrote:
Is that still being worked on?
If it is already available, then why is this issue still open?
SQLServerIO commentedon Mar 16, 2026
I'm in the same boat I use tmux and opencode's copy just doesn't work with tmux and I'm not going to change how tmux handles selecting so please just add a config to disable copy to clipboard on select.
CarloWood commentedon Mar 16, 2026
@SQLServerIO I created and am using this: https://github.com/CarloWood/opencode/tree/CW03-toggle-mouse-handling
with
in
$XDG_CONFIG_HOME/opencode/tui.jsonCarloWood commentedon Mar 16, 2026
By pressing f6 you can toggle between mouse handling by your terminal or by opencode.
pokulo commentedon Jul 31, 2026
OPENCODE_EXPERIMENTAL_DISABLE_COPY_ON_SELECT=trueand adapted keybindings intui.jsonappear to be the current state, see #4996