[Bug] Unexpected model behavior or malformed response
Bug Description
IMPORTANT! I have no idea what is going on, but seems like a bug in the model itself. Super odd response! Also, I have done nothing that I'm aware of which breaks your usage policy, I entirely think this is a bug in your system.
CONSOLE LOG
╭─── Claude Code v2.1.94 ─────────────────────────────────────────────────────────────────────────────╮
│ │ Recent activity │
│ Welcome back ...! │ No recent activity │
│ │ ────────────────────────────────────────────── │
│ ▐▛███▜▌ │ What's new │
│ ▝▜█████▛▘ │ Added support for Amazon Bedrock powered by M… │
│ ▘▘ ▝▝ │ Changed default effort level from medium to h… │
│ Opus 4.6 (1M context) · Claude Max · │ Added compact Slacked #channel header with … │
│ ...@gmail.com's Organization │ /release-notes for more │
│ ~/code/... │ │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────╯
❯ /clear
⎿ (no content)
❯ copy the linear-ticket skill from ../reia-config
⏺ The
- Nokclokesonr ni ni ni cock leveloi ooo ii ci ci cl ci cl
⎿ API Error: Claude Code is unable to respond to this request, which appears to violate our Usage
Policy (https://www.anthropic.com/legal/aup). Please double press esc to edit your last message or
start a new session for Claude Code to assist with a different task. If you are seeing this
refusal repeatedly, try running /model claude-sonnet-4-20250514 to switch models.
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 2.1.94
- Feedback ID: 50ecdeab-6be6-4cdd-8b01-5d808312c1ec
Errors
[{"error":"MaxFileReadTokenExceededError: File content (10084 tokens) exceeds maximum allowed tokens (10000). 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 JkK (file:///Users/joehosemann/.nvm/versions/node/v24.0.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:4567:13432)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async MkK (file:///Users/joehosemann/.nvm/versions/node/v24.0.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:4571:2584)\n at async Object.call (file:///Users/joehosemann/.nvm/versions/node/v24.0.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:4576:7222)\n at async yjY (file:///Users/joehosemann/.nvm/versions/node/v24.0.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:4099:8210)","timestamp":"2026-04-08T00:39:33.794Z"},{"error":"MaxFileReadTokenExceededError: File content (13890 tokens) exceeds maximum allowed tokens (10000). 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 JkK (file:///Users/joehosemann/.nvm/versions/node/v24.0.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:4567:13432)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async MkK (file:///Users/joehosemann/.nvm/versions/node/v24.0.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:4571:2584)\n at async Object.call (file:///Users/joehosemann/.nvm/versions/node/v24.0.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:4576:7222)\n at async yjY (file:///Users/joehosemann/.nvm/versions/node/v24.0.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:4099:8210)","timestamp":"2026-04-08T00:39:34.019Z"},{"error":"MaxFileReadTokenExceededError: File content (11427 tokens) exceeds maximum allowed tokens (10000). 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 JkK (file:///Users/joehosemann/.nvm/versions/node/v24.0.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:4567:13432)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async MkK (file:///Users/joehosemann/.nvm/versions/node/v24.0.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:4571:2584)\n at async Object.call (file:///Users/joehosemann/.nvm/versions/node/v24.0.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:4576:7222)\n at async yjY (file:///Users/joehosemann/.nvm/versions/node/v24.0.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:4099:8210)","timestamp":"2026-04-08T00:39:37.385Z"},{"error":"MaxFileReadTokenExceededError: File content (10016 tokens) exceeds maximum allowed tokens (10000). 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 JkK (file:///Users/joehosemann/.nvm/versions/node/v24.0.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:4567:13432)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async MkK (file:///Users/joehosemann/.nvm/versions/node/v24.0.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:4571:2584)\n at async Object.call (file:///Users/joehosemann/.nvm/versions/node/v24.0.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:4576:7222)\n at async yjY (file:///Users/joehosemann/.nvm/versions/node/v24.0.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:4099:8210)","timestamp":"2026-04-08T00:39:44.081Z"},{"error":"MaxFileReadTokenExceededError: File content (26154 tokens) exceeds maximum allowed tokens (10000). 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 JkK (file:///Users/joehosemann/.nvm/versions/node/v24.0.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:4567:13432)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async MkK (file:///Users/joehosemann/.nvm/versions/node/v24.0.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:4571:2584)\n at async Object.call (file:///Users/joehosemann/.nvm/versions/node/v24.0.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:4576:7222)\n at async yjY (file:///Users/joehosemann/.nvm/versions/node/v24.0.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:4099:8210)","timestamp":"2026-04-08T00:43:09.474Z"},{"error":"MaxFileReadTokenExceededError: File content (24238 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific conte…
Note: Content was truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗