Feature hasn't been suggested before.
Describe the enhancement you want to request
When pasting content into the TUI, OpenCode collapses it to [pasted ~ X lines] instead of showing the actual text. This makes it impossible to verify what was pasted before sending.
Users of dictation software (like SuperWhisper on Windows) rely on pasting transcribed text. Currently, they cannot see what was dictated and must blindly send it or use /editor as a workaround every time.
Add a setting in tui.json to control this behavior:
"collapse_pastes": false
}
When false, pasted content would display inline like regular typed text, allowing users to review and edit before sending.
Alternative
A keyboard shortcut to expand/collapse pasted content on demand would also work.
Plugins
No response
OpenCode version
1.2.27
Steps to reproduce
- Open OpenCode TUI in any project
- Copy any multi-line text to clipboard (e.g., a paragraph, code snippet, or dictation output)
- Paste into the message input (Ctrl+V or right-click paste)
- Observe: Input shows
[pasted ~ X lines] instead of the actual text
- Press Enter to send - text is processed but user cannot verify/edit it first
Expected: Option to see pasted text inline
Actual: Text is collapsed with no way to expand it
Screenshot and/or share link
No response
Operating System
Windows 11
Terminal
Windows Powershell
Additional issue on Windows Desktop App:
The /editor command doesn't work in the Desktop app even after setting EDITOR environment variable via setx. Desktop apps on Windows don't inherit environment variables from the terminal.
Suggested fix: Add an editor setting in opencode.json config file so users can configure the editor without relying on environment variables.
Feature hasn't been suggested before.
Describe the enhancement you want to request
When pasting content into the TUI, OpenCode collapses it to [pasted ~ X lines] instead of showing the actual text. This makes it impossible to verify what was pasted before sending.
Users of dictation software (like SuperWhisper on Windows) rely on pasting transcribed text. Currently, they cannot see what was dictated and must blindly send it or use /editor as a workaround every time.
Add a setting in tui.json to control this behavior:
"collapse_pastes": false
}
When false, pasted content would display inline like regular typed text, allowing users to review and edit before sending.
Alternative
A keyboard shortcut to expand/collapse pasted content on demand would also work.
Plugins
No response
OpenCode version
1.2.27
Steps to reproduce
[pasted ~ X lines]instead of the actual textExpected: Option to see pasted text inline
Actual: Text is collapsed with no way to expand it
Screenshot and/or share link
No response
Operating System
Windows 11
Terminal
Windows Powershell
Additional issue on Windows Desktop App:
The
/editorcommand doesn't work in the Desktop app even after setting EDITOR environment variable viasetx. Desktop apps on Windows don't inherit environment variables from the terminal.Suggested fix: Add an
editorsetting inopencode.jsonconfig file so users can configure the editor without relying on environment variables.