Skip to content

[FEATURE]: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. **Additional issue on Windows Desktop App:** #21315

Description

@chevalierornella-am

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request 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

  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

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.

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)discussionUsed for feature requests, proposals, ideas, etc. Open discussionwindows

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions