Skip to content

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

Closed as not planned

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

Activity

  1. github-actions commented on Feb 27, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of an existing issue. Please check:

    Since you've already referenced #8501, please consider whether this issue adds new information not covered there. If so, it may be worth adding a comment to that issue instead, or clarifying the distinction here.

  2. chindris-mihai-alexandru commented on Feb 27, 2026

    @chindris-mihai-alexandru
    Author

    This request is intentionally a bit different:

  3. chindris-mihai-alexandru commented on Feb 27, 2026

    @chindris-mihai-alexandru
    Author

    Implemented a desktop prototype + upstream PR for review: #15411

    Scope in PR:

    • collapse large pasted blocks in desktop input as [Pasted ~N lines]
    • preserve full pasted content for model submission
    • respect experimental.disable_paste_summary opt-out

    If maintainers prefer, this can be tuned further (thresholds, defaults, or per-block expand interaction).

  4. github-actions commented on Apr 29, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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