[Bug] Premature Conversation Compaction Despite Available Context Budget
Resolved 💬 3 comments Opened Oct 18, 2025 by bbn Closed Oct 22, 2025
Bug Description
Error: Error during compaction: Error: Conversation too long. But according to the /context report, I still have more than 40% of the context available.
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 2.0.21
- Feedback ID: 998518fb-6519-4d13-9e09-33c892b86749
Errors
[{"error":"Error: Server \"contextgraph\" not found. Available servers: plugin:contextgraph:actions\n at Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1353:1405)\n at call.next (<anonymous>)\n at bC8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2649:65320)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async uCQ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2649:62374)\n at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2649:61543\n at async ob1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:724:1644)\n at async vC8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2649:61455)\n at async kC8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2649:60443)\n at async Tj (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2649:57747)","timestamp":"2025-10-17T17:01:36.941Z"},{"error":"SyntaxError: Unexpected token '`', \"```json\n{\n\"... is not valid JSON\n at JSON.parse (<anonymous>)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:62:719\n at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:15093)\n at Zn2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1056:20444)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-10-17T17:04:35.269Z"},{"error":"SyntaxError: Unexpected token '`', \"```json\n{\n\"... is not valid JSON\n at JSON.parse (<anonymous>)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:62:719\n at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:15093)\n at Zn2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1056:20444)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-10-17T18:15:05.483Z"},{"error":"SyntaxError: Unexpected token '`', \"```json\n{\n\"... is not valid JSON\n at JSON.parse (<anonymous>)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:62:719\n at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:15093)\n at Zn2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1056:20444)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-10-17T18:16:51.714Z"},{"error":"SyntaxError: Unexpected token '`', \"```json\n{\n\"... is not valid JSON\n at JSON.parse (<anonymous>)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:62:719\n at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:15093)\n at Zn2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1056:20444)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-10-17T18:22:59.237Z"},{"error":"SyntaxError: Unexpected token '`', \"```json\n{\n\"... is not valid JSON\n at JSON.parse (<anonymous>)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:62:719\n at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:15093)\n at Zn2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1056:20444)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-10-17T18:26:02.164Z"},{"error":"SyntaxError: Unexpected token '`', \"```json\n{\n\"... is not valid JSON\n at JSON.parse (<anonymous>)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:62:719\n at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:15093)\n at Zn2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1056:20444)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-10-17T18:27:38.600Z"},{"error":"SyntaxError: Unexpected token '`', \"```json\n{\n\"... is not valid JSON\n at JSON.parse (<anonymous>)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:62:719\n at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:15093)\n at Zn2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1056:204
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗