Description
Problem
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.
Use Case
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.
Proposed Solution
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
1. Open OpenCode TUI in any project
2. Copy any multi-line text to clipboard (e.g., a paragraph, code snippet, or dictation output)
3. Paste into the message input (Ctrl+V or right-click paste)
4. Observe: Input shows `[pasted ~ X lines]` instead of the actual text
5. 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
Description
Problem
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.Use Case
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
/editoras a workaround every time.Proposed Solution
Add a setting in
tui.jsonto 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 1. Open OpenCode TUI in any project 2. Copy any multi-line text to clipboard (e.g., a paragraph, code snippet, or dictation output) 3. Paste into the message input (Ctrl+V or right-click paste) 4. Observe: Input shows `[pasted ~ X lines]` instead of the actual text 5. 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