[Bug] Auto-Compact triggers immediately after compaction on single message

Status Closed — duplicate
Maintainer reply None cached
Activity 3 comments · opened Nov 14, 2025 · closed Nov 17, 2025

Bug Description
It compacted then one message just asking a questionand then it had to compact again. This should be unacceptable.

Environment Info

  • Platform: win32
  • Terminal: null
  • Version: 2.0.37
  • Feedback ID:

Errors

[{"error":"MaxFileReadTokenExceededError: File content (82045 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 zs2 (file:///C:/Users/Admin/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3575:922)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///C:/Users/Admin/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3584:963)\n    at async file:///C:/Users/Admin/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1375:1402","timestamp":"2025-11-13T18:47:59.355Z"},{"error":"MaxFileReadTokenExceededError: File content (86994 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 zs2 (file:///C:/Users/Admin/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3575:922)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///C:/Users/Admin/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3584:963)\n    at async file:///C:/Users/Admin/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1375:1402","timestamp":"2025-11-13T18:47:59.653Z"},{"error":"MaxFileReadTokenExceededError: File content (86559 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 zs2 (file:///C:/Users/Admin/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3575:922)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///C:/Users/Admin/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3584:963)\n    at async file:///C:/Users/Admin/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1375:1402","timestamp":"2025-11-13T18:47:59.984Z"},{"error":"Error: Request was aborted.\n    at zi._createMessage (file:///C:/Users/Admin/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:235:4515)\n    at processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at runNextTicks (node:internal/process/task_queues:69:3)\n    at listOnTimeout (node:internal/timers:549:9)\n    at process.processTimers (node:internal/timers:523:7)","timestamp":"2025-11-13T18:51:37.997Z"},{"error":"MaxFileReadTokenExceededError: File content (99897 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 zs2 (file:///C:/Users/Admin/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3575:922)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///C:/Users/Admin/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3584:963)\n    at async file:///C:/Users/Admin/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1375:1402","timestamp":"2025-11-13T18:52:26.719Z"},{"error":"Error: Request was aborted.\n    at zi._createMessage (file:///C:/Users/Admin/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:235:4515)\n    at processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at runNextTicks (node:internal/process/task_queues:69:3)\n    at process.processTimers (node:internal/timers:520:9)","timestamp":"2025-11-13T18:52:48.584Z"},{"error":"Error: Request was aborted.\n    at zi._createMessage (file:///C:/Users/Admin/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:235:4515)\n    at processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at runNextTicks (node:internal/process/task_queues:69:3)\n    at process.processTimers (node:internal/timers:520:9)","timestamp":"2025-11-13T18:54:39.967Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at xD (file:///C:/Users/Admin/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1278:4413)\n    at file:///C:/Users/Admin/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1278:4141\n    at Array.map (<anonymous>)\n    at bC (file:///C:/Users/Admin/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1278:4132)\n    at S$Q (file:///C:/Users/Admin/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1653:2875)\n    at ow (file:///C:/Users/Admin/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:105:19

Note: Error logs were truncated.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗