Skip to content

[FEATURE]: Desktop prompt option to collapse/obfuscate large pasted text as [Pasted ~N lines] #15405

@chindris-mihai-alexandru

Description

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

In OpenCode Desktop, when I paste large text blocks, I want an option to hide/collapse the pasted content in the input area (similar to TUI behavior like [Pasted ~N lines]), while still sending full content to the model.

Why this is useful

  • Keeps the input readable when pasting multiple large chunks
  • Reduces visual noise / distraction
  • Still preserves full context for the LLM
  • Better workflow for users who intentionally paste many chunks before sending

Proposed behavior

  • Add a desktop/web setting to collapse large pasted text in the prompt editor
  • Show a compact token like [Pasted ~N lines]
  • Preserve exact pasted content in submitted prompt
  • Optional: allow quick expand/collapse per pasted block

Related issues

Metadata

Metadata

Assignees

Labels

webRelates to opencode on web / desktop

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions