[Bug] Sub-agents lose state after auto-compact

Resolved 💬 3 comments Opened Dec 7, 2025 by syahril-cb Closed Dec 10, 2025

Bug Description
sub-agents running in the background but after compaction it forgot

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.0.60
  • Feedback ID: 8783470c-0897-4356-b613-da4d0be3610f

Errors

[{"error":"MaxFileReadTokenExceededError: File content (27896 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 I12 (file:///Users/syahril/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1446:10603)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///Users/syahril/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1455:963)\n    at async fx7 (file:///Users/syahril/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:3094:16949)","timestamp":"2025-12-07T01:04:16.070Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"max_tokens: Extra inputs are not permitted\"},\"request_id\":\"req_011CVrSVzc1aULnADWxGCSbL\"}\n    at V9.generate (file:///Users/syahril/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:106:10318)\n    at rT.makeStatusError (file:///Users/syahril/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1283:2195)\n    at rT.makeRequest (file:///Users/syahril/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1283:5419)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///Users/syahril/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1435:2769\n    at async file:///Users/syahril/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1435:2262\n    at async t15 (file:///Users/syahril/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1434:16948)\n    at async kA2 (file:///Users/syahril/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1435:2195)\n    at async jjA (file:///Users/syahril/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2219:52)\n    at async Da5 (file:///Users/syahril/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2219:2244)","timestamp":"2025-12-07T01:14:20.115Z"},{"error":"Error: Request was aborted.\n    at Ao._createMessage (file:///Users/syahril/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:110:3151)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-12-07T01:15:35.554Z"},{"error":"MaxFileReadTokenExceededError: File content (26889 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 I12 (file:///Users/syahril/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1446:10603)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///Users/syahril/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1455:963)\n    at async fx7 (file:///Users/syahril/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:3094:16949)","timestamp":"2025-12-07T01:28:56.516Z"},{"error":"Error: Request was aborted.\n    at Ao._createMessage (file:///Users/syahril/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:110:3151)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-12-07T01:34:10.152Z"}]

View original on GitHub ↗

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