Skip to content

[FEATURE]: Show full preview of pasted multi-line text in input box #14670

Closed as not planned

Description

@lly835

Description

When pasting multi-line text (especially from voice input tools like Typeless), OpenCode shows only a preview indicator [Pasted ~N lines] without showing the actual content. This makes it difficult to verify the pasted content before submitting.

Problem

  1. User pastes multi-line text (e.g., 50+ lines from voice input)
  2. OpenCode displays only [Pasted ~50 lines] as a preview
  3. User cannot see the actual content to verify it
  4. This is especially problematic for voice input users who need to review long dictations

Expected Behavior

Either:

Option 1: Show the actual pasted content in the input box (expand the input box to fit the content)

Option 2: Allow users to expand the input box height manually to see more content

Option 3: Show a preview popup that displays the full pasted content when hovering or clicking

Use Case

  • Voice input users (Typeless, Whisper, etc.) often produce long paragraphs
  • Users need to verify the AI-corrected text before sending
  • Currently they have to paste into an external editor to verify content

Environment

  • OpenCode version: Latest
  • Terminal: Ghostty (macOS)
  • Issue also affects other terminals

Related Issues

This is somewhat related to:

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Feb 22, 2026
  2. github-actions commented on Feb 22, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • The title should start with [FEATURE]: (e.g., [FEATURE]: Show full preview of pasted multi-line text in input box) to match the Feature Request template format.

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.

    If you believe this was flagged incorrectly, please let a maintainer know.

  3. changed the title [-]Feature Request: Show full preview of pasted multi-line text in input box[/-] [+][FEATURE]: Show full preview of pasted multi-line text in input box[/+] on Feb 22, 2026
  4. github-actions commented on Feb 22, 2026

    @github-actions
    Contributor

    Thanks for updating the issue! It now meets our contributing guidelines and has been marked as compliant.

  5. ariane-emory commented on Feb 23, 2026

    @ariane-emory
    Contributor

    Just set experimental.disable_paste_summary in your config:

      "experimental": {
        "disable_paste_summary": true,
      },
    

    This works great with my dictation software.

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

    @chindris-mihai-alexandru

    Related request from the opposite UX direction: I'd like the desktop app to keep large pasted text collapsed as [Pasted ~N lines] (while still sending full content to the model).

    Issue link: #15405

    I think the best outcome is making this configurable so both workflows are supported:

    • show full pasted content
    • collapse pasted content
  7. assigned and unassigned on Apr 26, 2026
  8. removed
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  9. github-actions commented on Jul 4, 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.

  10. IsaiahSama commented on Sep 4, 2026

    @IsaiahSama

    I second wanting this feature...
    Similar to how Claude Code does it, where the first time you paste, it shows the "Pasted ~n lines", but then if you paste again, it expands it

  11. JoeBrar commented on Sep 4, 2026

    @JoeBrar

    I second wanting this feature... Similar to how Claude Code does it, where the first time you paste, it shows the "Pasted ~n lines", but then if you paste again, it expands it

    Yes this is what I want

  12. husnn commented on Sep 21, 2026

    @husnn

    Curious behind the decision to collapse text even when there are very few lines (e.g < 5) being pasted.

    I believe there should be a higher threshold for when the input gets collapsed. Right now typing anything via voice almost always results in [Pasted ~N lines] which is annoying (as OP has pointed out).

    Is this is a deliberate design choice?

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions