[FEATURE]
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
Long pasted text is no longer auto-captured as a file attachment (e.g. "pasted_text.txt") — it now arrives as raw inline text in the message and silently truncates at 50,000 characters ("[Message truncated - exceeded 50,000 character limit]"). This used to work automatically on paste in earlier versions.
Environment: Claude Code VS Code native extension, Windows 11.
Impact: pasting long terminal/log output (common when debugging) loses the tail of the content past 50k chars with no warning before truncation, and no way to recover the rest without re-running the command and saving to a file manually.
Request: restore auto-attach-on-paste for long text blocks (or add a configurable threshold/setting to opt into it), so large pastes become a file reference instead of being silently truncated.
Proposed Solution
Long pasted text is no longer auto-captured as a file attachment (e.g. "pasted_text.txt") — it now arrives as raw inline text in the message and silently truncates at 50,000 characters ("[Message truncated - exceeded 50,000 character limit]"). This used to work automatically on paste in earlier versions.
Environment: Claude Code VS Code native extension, Windows 11.
Impact: pasting long terminal/log output (common when debugging) loses the tail of the content past 50k chars with no warning before truncation, and no way to recover the rest without re-running the command and saving to a file manually.
Proposed Solution:
Restore auto-attach-on-paste for text blocks above a size threshold (e.g. ~5-10k chars), converting them into a file reference (like image paste already does) instead of inlining raw text. If a hard 50k inline limit must stay for cost/context reasons, at minimum:
- Warn before truncating, not just after (e.g. "this paste is 80k chars, attach as file instead?").
- Make the threshold configurable via settings.json.
- Ensure the truncation warning states how many characters were dropped, so the user knows content is missing rather than assuming the paste completed.
Alternative Solutions
_No response_
Priority
Critical - Blocking my work
Feature Category
CLI commands and flags
Use Case Example
_No response_
Additional Context
_No response_