[Bug] Auto-Compact fails with "go a few messages up" error instead of compacting
Resolved 💬 3 comments Opened Dec 18, 2025 by 5hdaniel Closed Dec 22, 2025
Bug Description
I'm told i need to compact the converstation becsuse the context is low, when i try to compact it's saying i have to go a few messages up, and it won't compact. not sure how to hadnel this
Environment Info
- Platform: win32
- Terminal: vscode
- Version: 2.0.72
- Feedback ID: 406b9228-4581-4a29-8a34-4fb222b52f11
Errors
[{"error":"QtB: Diagnostics file path mismatch: expected C:\\Users\\Daniel\\New folder\\Mad\\electron\\services\\extraction\\hybridExtractorService.ts, got file://c:\\users\\daniel\\new folder\\mad\\electron\\services\\extraction\\hybridextractorservice.ts/)\n at RP.beforeFileEdited (file:///C:/Users/Daniel/AppData/Local/nvm/v22.21.1/node_modules/@anthropic-ai/claude-code/cli.js:1161:50788)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///C:/Users/Daniel/AppData/Local/nvm/v22.21.1/node_modules/@anthropic-ai/claude-code/cli.js:1826:624)\n at async KY5 (file:///C:/Users/Daniel/AppData/Local/nvm/v22.21.1/node_modules/@anthropic-ai/claude-code/cli.js:2123:17469)","timestamp":"2025-12-18T11:36:05.117Z"},{"error":"MaxFileReadTokenExceededError: File content (27626 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n at gPB (file:///C:/Users/Daniel/AppData/Local/nvm/v22.21.1/node_modules/@anthropic-ai/claude-code/cli.js:968:12169)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///C:/Users/Daniel/AppData/Local/nvm/v22.21.1/node_modules/@anthropic-ai/claude-code/cli.js:977:996)\n at async file:///C:/Users/Daniel/AppData/Local/nvm/v22.21.1/node_modules/@anthropic-ai/claude-code/cli.js:3583:1459","timestamp":"2025-12-18T11:37:56.431Z"},{"error":"MaxFileReadTokenExceededError: File content (32005 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n at gPB (file:///C:/Users/Daniel/AppData/Local/nvm/v22.21.1/node_modules/@anthropic-ai/claude-code/cli.js:968:12169)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///C:/Users/Daniel/AppData/Local/nvm/v22.21.1/node_modules/@anthropic-ai/claude-code/cli.js:977:996)\n at async file:///C:/Users/Daniel/AppData/Local/nvm/v22.21.1/node_modules/@anthropic-ai/claude-code/cli.js:3583:1459","timestamp":"2025-12-18T11:38:07.721Z"},{"error":"MaxFileReadTokenExceededError: File content (25762 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n at gPB (file:///C:/Users/Daniel/AppData/Local/nvm/v22.21.1/node_modules/@anthropic-ai/claude-code/cli.js:968:12169)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///C:/Users/Daniel/AppData/Local/nvm/v22.21.1/node_modules/@anthropic-ai/claude-code/cli.js:977:996)\n at async file:///C:/Users/Daniel/AppData/Local/nvm/v22.21.1/node_modules/@anthropic-ai/claude-code/cli.js:3583:1459","timestamp":"2025-12-18T11:38:32.422Z"},{"error":"QtB: Diagnostics file path mismatch: expected C:\\Users\\Daniel\\New folder\\Mad\\electron\\services\\extraction\\__tests__\\hybridExtractorService.test.ts, got file://c:\\users\\daniel\\new folder\\mad\\electron\\services\\extraction\\__tests__\\hybridextractorservice.test.ts/)\n at RP.beforeFileEdited (file:///C:/Users/Daniel/AppData/Local/nvm/v22.21.1/node_modules/@anthropic-ai/claude-code/cli.js:1161:50788)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///C:/Users/Daniel/AppData/Local/nvm/v22.21.1/node_modules/@anthropic-ai/claude-code/cli.js:1214:1253)\n at async KY5 (file:///C:/Users/Daniel/AppData/Local/nvm/v22.21.1/node_modules/@anthropic-ai/claude-code/cli.js:2123:17469)","timestamp":"2025-12-18T11:40:11.892Z"},{"error":"QtB: Diagnostics file path mismatch: expected C:\\Users\\Daniel\\New folder\\Mad\\electron\\services\\extraction\\__tests__\\hybridExtractorService.test.ts, got file://c:\\users\\daniel\\new folder\\mad\\electron\\services\\extraction\\__tests__\\hybridextractorservice.test.ts/)\n at RP.beforeFileEdited (file:///C:/Users/Daniel/AppData/Local/nvm/v22.21.1/node_modules/@anthropic-ai/claude-code/cli.js:1161:50788)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///C:/Users/Daniel/AppData/Local/nvm/v22.21.1/node_modules/@anthropic-ai/claude-code/cli.js:1826:624)\n at async KY5 (file:///C:/Users/Daniel/AppData/Local/nvm/v22.21.1/node_modules/@anthropic-ai/claude-code/cli.js:2123:17469)","timestamp":"2025-12-18T11:41:11.990Z"},{"error":"QtB: Diagnostics file path mismatch: expected
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗