Context Truncation Warning During Input Processing
Resolved 💬 6 comments Opened May 18, 2025 by mattgodbolt Closed Jan 3, 2026
Bug Description
The context says it has 20% left under the input box but I just got "Context low - run /compact"
Environment Info
- Platform: linux
- Terminal: gnome-terminal
- Version: 0.2.117
- Feedback ID: 165f3673-7ec8-4aef-b3c5-8bbcf2a7883b
Errors
[{"error":"ShellError: Shell command failed\n at Object.call (file:///opt/compiler-explorer-old/node/lib/node_modules/@anthropic-ai/claude-code/cli.js:1804:1200)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async vz5 (file:///opt/compiler-explorer-old/node/lib/node_modules/@anthropic-ai/claude-code/cli.js:1902:16045)\n at async GV1 (file:///opt/compiler-explorer-old/node/lib/node_modules/@anthropic-ai/claude-code/cli.js:1902:13875)\n at async xz5 (file:///opt/compiler-explorer-old/node/lib/node_modules/@anthropic-ai/claude-code/cli.js:1902:13199)\n at async Ym1 (file:///opt/compiler-explorer-old/node/lib/node_modules/@anthropic-ai/claude-code/cli.js:1902:13133)\n at async $a (file:///opt/compiler-explorer-old/node/lib/node_modules/@anthropic-ai/claude-code/cli.js:1902:12223)\n at async $a (file:///opt/compiler-explorer-old/node/lib/node_modules/@anthropic-ai/claude-code/cli.js:1902:12724)\n at async $a (file:///opt/compiler-explorer-old/node/lib/node_modules/@anthropic-ai/claude-code/cli.js:1902:12724)\n at async $a (file:///opt/compiler-explorer-old/node/lib/node_modules/@anthropic-ai/claude-code/cli.js:1902:12724)","timestamp":"2025-05-18T15:43:42.253Z"},{"error":"ShellError: Shell command failed\n at Object.call (file:///opt/compiler-explorer-old/node/lib/node_modules/@anthropic-ai/claude-code/cli.js:1804:1200)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async vz5 (file:///opt/compiler-explorer-old/node/lib/node_modules/@anthropic-ai/claude-code/cli.js:1902:16045)\n at async GV1 (file:///opt/compiler-explorer-old/node/lib/node_modules/@anthropic-ai/claude-code/cli.js:1902:13875)\n at async xz5 (file:///opt/compiler-explorer-old/node/lib/node_modules/@anthropic-ai/claude-code/cli.js:1902:13199)\n at async Ym1 (file:///opt/compiler-explorer-old/node/lib/node_modules/@anthropic-ai/claude-code/cli.js:1902:13133)\n at async $a (file:///opt/compiler-explorer-old/node/lib/node_modules/@anthropic-ai/claude-code/cli.js:1902:12223)\n at async $a (file:///opt/compiler-explorer-old/node/lib/node_modules/@anthropic-ai/claude-code/cli.js:1902:12724)\n at async $a (file:///opt/compiler-explorer-old/node/lib/node_modules/@anthropic-ai/claude-code/cli.js:1902:12724)\n at async $a (file:///opt/compiler-explorer-old/node/lib/node_modules/@anthropic-ai/claude-code/cli.js:1902:12724)","timestamp":"2025-05-18T15:46:14.039Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 209705 tokens > 200000 maximum\"}}\n at v5.generate (file:///opt/compiler-explorer-old/node/lib/node_modules/@anthropic-ai/claude-code/cli.js:669:4452)\n at t8.makeStatusError (file:///opt/compiler-explorer-old/node/lib/node_modules/@anthropic-ai/claude-code/cli.js:673:7240)\n at t8.makeRequest (file:///opt/compiler-explorer-old/node/lib/node_modules/@anthropic-ai/claude-code/cli.js:673:8185)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-05-18T15:48:29.692Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 209705 tokens > 200000 maximum\"}}\n at v5.generate (file:///opt/compiler-explorer-old/node/lib/node_modules/@anthropic-ai/claude-code/cli.js:669:4452)\n at t8.makeStatusError (file:///opt/compiler-explorer-old/node/lib/node_modules/@anthropic-ai/claude-code/cli.js:673:7240)\n at t8.makeRequest (file:///opt/compiler-explorer-old/node/lib/node_modules/@anthropic-ai/claude-code/cli.js:673:8185)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Ut2.Wa.showErrors (file:///opt/compiler-explorer-old/node/lib/node_modules/@anthropic-ai/claude-code/cli.js:1533:16521)\n at async Wa (file:///opt/compiler-explorer-old/node/lib/node_modules/@anthropic-ai/claude-code/cli.js:1533:9981)\n at async Ut2 (file:///opt/compiler-explorer-old/node/lib/node_modules/@anthropic-ai/claude-code/cli.js:1533:16397)\n at async Rd1 (file:///opt/compiler-explorer-old/node/lib/node_modules/@anthropic-ai/claude-code/cli.js:1533:4280)\n at async hX1 (file:///opt/compiler-explorer-old/node/lib/node_modules/@anthropic-ai/claude-code/cli.js:1533:14673)\n at async kz5 (file:///opt/compiler-explorer-old/node/lib/node_modules/@anthropic-ai/claude-code/cli.js:1902:10248)","timestamp":"2025-05-18T15:48:30.103Z"}]
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗