Skip to content

Add pasteCollapseThreshold setting to control or disable paste collapsing in the prompt #55329

Description

@JakeSummers

Summary

Claude Code's TUI collapses any pasted text into a [Pasted text #1 +N lines] placeholder. There's no setting to raise/lower the threshold or disable the behavior. Please add a pasteCollapseThreshold setting (line count, with 0 or false to disable collapsing entirely).

Motivation

The collapse behavior makes sense for large pastes, but it's painful in two real workflows:

  1. Voice dictation tools (Wispr Flow, Whisper-based dictation, etc.) insert text via the system paste buffer. Even a 3–4 line dictation gets collapsed, so I can't see or proofread what was inserted before submitting. My current workaround is pressing Ctrl+G to pop the prompt into $EDITOR on every dictation — real friction when dictation is supposed to be the fast path.
  2. Multi-line prompts composed in another editor and pasted in for a final once-over. I want to see them, not a placeholder.

Proposed setting

{
  "pasteCollapseThreshold": 20
}
  • Integer: collapse pastes ≥ N lines, show shorter pastes inline.
  • 0 or false: never collapse — always show pasted text inline.
  • Default: current behavior (whatever the hardcoded threshold is today).

Alternative

A keybinding action like chat:expandPaste that toggles a single collapsed paste block in place would also solve case #1 — though a setting is simpler and serves both cases.

Environment

  • Claude Code CLI on macOS
  • Used heavily with Wispr Flow voice dictation

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions