Add pasteCollapseThreshold setting to control or disable paste collapsing in the prompt
Resolved 💬 3 comments Opened May 1, 2026 by JakeSummers Closed May 5, 2026
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:
- 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+Gto pop the prompt into$EDITORon every dictation — real friction when dictation is supposed to be the fast path. - 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.
0orfalse: 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
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗