[FEATURE] Configurable threshold for pasted text collapsing

Resolved 💬 2 comments Opened Feb 6, 2026 by PaulRBerg Closed Feb 6, 2026

Problem

When pasting text into Claude Code, content above a certain line/character threshold is automatically collapsed into a summary like "Pasted text #1 +N lines" instead of displaying the actual text inline. There is currently no way to control this threshold, which means shorter pastes that the user wants to see in full get collapsed, or the user has no way to adjust the behavior to their preference.

Proposed solution

Add a configurable setting (e.g., in ~/.claude/settings.json or a similar config file) that controls the line count and/or character count threshold at which pasted text gets collapsed into the "Pasted text #1 +N lines" summary. For example:

{
  "pasteCollapseThreshold": {
    "lines": 20,
    "characters": 2000
  }
}

Users should be able to increase or decrease this threshold, or disable collapsing entirely (e.g., by setting it to Infinity or -1).

<img width="278" height="53" alt="Image" src="https://github.com/user-attachments/assets/3a5ac945-18ab-4605-ac11-2cbceda4c2e2" />

Alternatives considered

None — there is currently no workaround to control this behavior.

Priority

Medium

Category

Interactive mode (TUI)

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗