Description
OpenCode TUI automatically copies selected text to clipboard (likely via xclip/xsel), but this breaks manual paste functionality because:
- On headless servers without X11 display, xclip fails with errors
- Even when xclip works, the copied content cannot be pasted in OpenCode dialogs
- This makes it impossible to use AI-generated code/response
Environment
- OpenCode version: TUI
- Run on server without X11 display
Steps to reproduce
- Start OpenCode TUI (likely any platform)
- Wait for AI to generate response
- Try to select/copy text - it auto-copies
- Try to paste - nothing happens
Expected behavior
- Allow manual copy/paste OR
- Allow disabling auto-copy OR
- Fix clipboard integration for server environments
Potential solution
- Add option to disable auto-copy in config
- Or improve clipboard handling for headless/server environments
- Or improve error handling so it doesn't silently break
Description
OpenCode TUI automatically copies selected text to clipboard (likely via xclip/xsel), but this breaks manual paste functionality because:
Environment
Steps to reproduce
Expected behavior
Potential solution