[Bug] Auto-Compact loops continuously in v2.1.89
Status Fixed / completed
Reported on v2.1.89
Maintainer reply None cached
Activity 6 comments · opened Apr 1, 2026 · closed Apr 2, 2026
Bug Description
It looks like claude code v2.1.89 is constantly compacting and a lot of its output it continously trunucated
Environment Info
- Platform: darwin
- Terminal: ghostty
- Version: 2.1.89
- Feedback ID: 7b6d5a75-2307-400c-89b4-bbd90fc8f8a6
Errors
[{"error":"MaxFileReadTokenExceededError: File content (14120 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at r47 (/$bunfs/root/src/entrypoints/cli.js:4300:13161)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-01T02:00:06.488Z"},{"error":"MaxFileReadTokenExceededError: File content (91932 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at r47 (/$bunfs/root/src/entrypoints/cli.js:4300:13161)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-01T02:08:29.746Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/karinakeim/tiw-2026-website/src/data'\n at i7H (/$bunfs/root/src/entrypoints/cli.js:3863:410)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-01T02:16:31.231Z"},{"error":"Error: Request was aborted.\n at Kh_ (/$bunfs/root/src/entrypoints/cli.js:1248:17137)\n at next (native:1:11)\n at fy7 (/$bunfs/root/src/entrypoints/cli.js:7685:9029)\n at next (native:1:11)\n at Dy7 (/$bunfs/root/src/entrypoints/cli.js:7690:10775)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-01T02:27:04.796Z"},{"error":"Error: Request was aborted.\n at Kh_ (/$bunfs/root/src/entrypoints/cli.js:1248:17137)\n at next (native:1:11)\n at fy7 (/$bunfs/root/src/entrypoints/cli.js:7685:9029)\n at next (native:1:11)\n at Dy7 (/$bunfs/root/src/entrypoints/cli.js:7690:10775)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-01T02:53:23.034Z"},{"error":"MaxFileReadTokenExceededError: File content (32491 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at r47 (/$bunfs/root/src/entrypoints/cli.js:4300:13161)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-01T02:54:02.543Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/karinakeim/Cowboy/memory/tiw'\n at i7H (/$bunfs/root/src/entrypoints/cli.js:3863:410)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-01T02:54:13.530Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3940)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-01T02:56:41.169Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3940)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-01T03:00:32.394Z"},{"error":"AxiosError: Request failed with status code 404\n at mg (/$bunfs/root/src/entrypoints/cli.js:108:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12754)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:861:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-01T03:19:20.952Z"},{"error":"AxiosError: Request failed with status code 404\n at mg (/$bunfs/root/src/entrypoints/cli.js:108:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12754)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:861:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-01T03:19:27.372Z"},{"error":"AxiosError: Request failed with status code 403\n at mg (/$bunfs/root/src/entrypoints/cli.js:108:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12754)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:861:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-01T03:19:49.411Z"},{"error":"AxiosError: Request failed with status code 404\n at mg (/$bunfs/root/src/entrypoints/cli.js:108:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12754)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:861:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n …
Note: Content was truncated.
6 Comments
Is this why i'm seeing it randomly just stop for no discernible reason? I've had 2 tasks just hang for 30 minutes since this release with no rhyme or reason
It also removed opus 1m.
Auto-Compact looping continuously would drain tokens rapidly. This could be contributing to the rate limit exhaustion many Max subscribers are seeing.
Max 20, v2.1.89, April 1: 100% in ~70 min.
Full report: #41788
Related: #38335, #41663, #41607, #41750
Update (April 2): v2.1.90 shows significant cache improvement.
Benchmark on the same machine confirms v2.1.90 achieves 86%+ overall cache read and 95-99% in stable sessions — both npm and standalone. If you're still on v2.1.89 or earlier, updating is the most impactful fix.
Disable auto-update after upgrading to pin the working version:
Full data: https://github.com/ArkNill/claude-code-cache-analysis
April 3 update: The cache regression (Bugs 1-2) is fixed in v2.1.91. However, systematic proxy testing revealed additional unfixed mechanisms — a 200K tool result budget cap, a client-side false rate limiter (151 synthetic entries found), and silent microcompact clearing (327 events). Anthropic responded on X (Lydia Hallie) acknowledging peak-hour tightening but stating "none were over-charging you" — our measured data shows mechanisms their statement does not cover. Full analysis: claude-code-cache-analysis
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.