[Bug] Auto-Compact Failure Leaves Instance in Unrecoverable Context Limit State

Status Closed — not planned
Reported on v2.1.39
Maintainer reply None cached
Activity 5 comments · opened Feb 11, 2026 · closed Mar 22, 2026

Bug Description
autocompact didnt work and now instance is stuck with context limit reached and compact wont work

Environment Info

  • Platform: linux
  • Terminal: tmux
  • Version: 2.1.39
  • Feedback ID: 103a13ae-b006-4fbf-81e3-d82d4168c699

Errors

[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 202952 tokens > 200000 maximum\"},\"request_id\":\"req_011CY25N35edpwBxPvjMW8HA\"}\n    at E4.generate (file:///home/buckstrdr/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:354:8788)\n    at aC.makeStatusError (file:///home/buckstrdr/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:393:2195)\n    at aC.makeRequest (file:///home/buckstrdr/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:393:5420)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2026-02-11T09:52:01.024Z"},{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n    at MW1 (file:///home/buckstrdr/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3378:934)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Qs4 (file:///home/buckstrdr/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3463:2536)\n    at async fR (file:///home/buckstrdr/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3556:7360)\n    at async file:///home/buckstrdr/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:7500:3543\n    at async file:///home/buckstrdr/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:7500:4328","timestamp":"2026-02-11T09:52:01.027Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 201803 tokens > 200000 maximum\"},\"request_id\":\"req_011CY25N7EvjeFtYqD9gMkDu\"}\n    at E4.generate (file:///home/buckstrdr/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:354:8788)\n    at aC.makeStatusError (file:///home/buckstrdr/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:393:2195)\n    at aC.makeRequest (file:///home/buckstrdr/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:393:5420)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2026-02-11T09:52:01.480Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 207213 tokens > 200000 maximum\"},\"request_id\":\"req_011CY25NAMhZGo4WZp4Bshje\"}\n    at E4.generate (file:///home/buckstrdr/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:354:8788)\n    at aC.makeStatusError (file:///home/buckstrdr/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:393:2195)\n    at aC.makeRequest (file:///home/buckstrdr/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:393:5420)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2026-02-11T09:52:02.616Z"},{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n    at MW1 (file:///home/buckstrdr/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3378:934)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Qs4 (file:///home/buckstrdr/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3463:2536)\n    at async fR (file:///home/buckstrdr/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3556:7360)\n    at async file:///home/buckstrdr/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:7500:3543\n    at async file:///home/buckstrdr/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:7500:4328\n    at async CPz (file:///home/buckstrdr/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:7490:25747)\n    at async mE6 (file:///home/buckstrdr/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:7490:24387)\n    at async file:///home/buckstrdr/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:7502:440","timestamp":"2026-02-11T09:52:02.618Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 206068 tokens > 200000 maximum\"},\"request_id\":\"req_011CY25NE6SDYJw1cYjLd7vx\"}\n    at E4.generate (file:///home/buckstrdr/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js…

Note: Content was truncated.

View original on GitHub ↗

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