[Bug] Claude Code CLI paste input truncated for multi-line instructions over 1500 chars
Bug Description
Issue: Claude Code CLI (Opus 4.7) — paste size limit blocks normal workflow
Environment: Claude Code CLI, model claude-opus-4-7, Windows using PowerShell
Behavior: When pasting multi-line instruction blocks (~1500+ chars / ~40+ lines) into a fresh session, the paste is truncated or rejected. This forces splitting kickoff instructions across multiple messages, breaks the standard "session kickoff with full context" pattern, and increases risk of dropped context.
Expected: Paste should accept at least the equivalent of a master prompt (~5-10K chars) without truncation, matching the web/desktop UX.
Workaround in use: Splitting instructions into smaller chunks; saving instructions to a file in the repo and pointing the session at the file path.
Impact: High for orchestration-heavy workflows (multi-session, dual-Claude protocols, structured WQ kickoffs). Slows every session start.
Reproducibility: Consistent. Started after switching to Opus 4.7. Pasting ~1,100 lines worked with 4.5 and 4.6 consistently in the past.
Environment Info
- Platform: win32
- Terminal: null
- Version: 2.1.112
- Feedback ID: 6e0e504f-46b5-4466-afab-de1f1b3d0167
Errors
[{"error":"MaxFileReadTokenExceededError: File content (58644 tokens) exceeds maximum allowed tokens (25000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at QyK (file:///C:/Users/omeek/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4980:12515)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async dyK (file:///C:/Users/omeek/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4984:2638)\n at async Object.call (file:///C:/Users/omeek/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4989:7236)\n at async UJY (file:///C:/Users/omeek/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4439:8320)","timestamp":"2026-04-17T02:01:32.660Z"},{"error":"MaxFileReadTokenExceededError: File content (86731 tokens) exceeds maximum allowed tokens (25000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at QyK (file:///C:/Users/omeek/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4980:12515)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async dyK (file:///C:/Users/omeek/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4984:2638)\n at async Object.call (file:///C:/Users/omeek/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4989:7236)\n at async UJY (file:///C:/Users/omeek/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4439:8320)","timestamp":"2026-04-17T02:02:18.572Z"}]This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗