claude-code - 💡(How to fix) Fix [Bug] Conversation compactor fails to reduce token usage for extended context [6 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#49176Fetched 2026-04-17 08:48:44
View on GitHub
Comments
6
Participants
3
Timeline
12
Reactions
0
Author
Timeline (top)
commented ×6labeled ×4mentioned ×1subscribed ×1

Error Message

[{"error":"Error: ENOENT: no such file or directory, unlink 'C:\Users\Avi\AppData\Local\Temp\claude\C--repositories-avi-youtube-downloader\b9a3862c-1907-41d0-a5a3-6758aaa53333\tasks\a085abe39b9e405d4.output'\n at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:7962:299)","timestamp":"2026-04-16T13:04:50.652Z"},{"error":"McpToolCallError: Unexpected identifier 'as'\n at JD_ (B:/~BUN/root/src/entrypoints/cli.js:4810:63)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:41:40.532Z"},{"error":"McpToolCallError: Element with uid 1_210 no longer exists on the page.\nCause: Protocol error (DOM.resolveNode): No node with given id found\n at JD_ (B:/~BUN/root/src/entrypoints/cli.js:4810:63)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:42:26.351Z"},{"error":"Error: 429 {"type":"error","error":{"type":"rate_limit_error","message":"Extra usage is required for long context requests."},"request_id":"req_011Ca7Yimo5RDjjRosdQHf7R"}\n at generate (B:/~BUN/root/src/entrypoints/cli.js:11:52626)\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:42:40.425Z"},{"error":"Error: 429 {"type":"error","error":{"type":"rate_limit_error","message":"Extra usage is required for long context requests."},"request_id":"req_011Ca7YnRKe33f2GbbkzPxCE"}\n at generate (B:/~BUN/root/src/entrypoints/cli.js:11:52626)\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:43:29.680Z"},{"error":"Error: Reactive compact: summarization returned API error: API Error: Extra usage is required for 1M context · run /extra-usage to enable, or /model to switch to standard context\n at fw4 (B:/~BUN/root/src/entrypoints/cli.js:2342:1125)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:43:29.681Z"},{"error":"Error: Error during compaction: API Error: Extra usage is required for 1M context · run /extra-usage to enable, or /model to switch to standard context\n at kz1 (B:/~BUN/root/src/entrypoints/cli.js:5501:1112)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:43:29.681Z"}]

Code Example

[{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\Avi\\AppData\\Local\\Temp\\claude\\C--repositories-avi-youtube-downloader\\b9a3862c-1907-41d0-a5a3-6758aaa53333\\tasks\\a085abe39b9e405d4.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:7962:299)","timestamp":"2026-04-16T13:04:50.652Z"},{"error":"McpToolCallError: Unexpected identifier 'as'\n    at JD_ (B:/~BUN/root/src/entrypoints/cli.js:4810:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:41:40.532Z"},{"error":"McpToolCallError: Element with uid 1_210 no longer exists on the page.\nCause: Protocol error (DOM.resolveNode): No node with given id found\n    at JD_ (B:/~BUN/root/src/entrypoints/cli.js:4810:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:42:26.351Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Extra usage is required for long context requests.\"},\"request_id\":\"req_011Ca7Yimo5RDjjRosdQHf7R\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:52626)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:42:40.425Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Extra usage is required for long context requests.\"},\"request_id\":\"req_011Ca7YnRKe33f2GbbkzPxCE\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:52626)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:43:29.680Z"},{"error":"Error: Reactive compact: summarization returned API error: API Error: Extra usage is required for 1M context · run /extra-usage to enable, or /model to switch to standard context\n    at fw4 (B:/~BUN/root/src/entrypoints/cli.js:2342:1125)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:43:29.681Z"},{"error":"Error: Error during compaction: API Error: Extra usage is required for 1M context · run /extra-usage to enable, or /model to switch to standard context\n    at kz1 (B:/~BUN/root/src/entrypoints/cli.js:5501:1112)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:43:29.681Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description I keep getting “API Error: Extra usage is required for 1M context - run /extra usage Enable, or /model to switch to standard context” even though I have plenty of usage left. It appears that the conversation compactor function fails to work

<img width="1275" height="166" alt="Image" src="https://github.com/user-attachments/assets/19fec2a4-0215-407a-b1cc-f2abab526c8e" /> <img width="1010" height="353" alt="Image" src="https://github.com/user-attachments/assets/b628954c-7830-49fc-bbf3-c5e192c769a0" />

Environment Info

  • Platform: win32
  • Terminal: pycharm
  • Version: 2.1.110
  • Feedback ID: d1cdbc06-affd-46af-b4c4-648d70549103

Errors

[{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\Avi\\AppData\\Local\\Temp\\claude\\C--repositories-avi-youtube-downloader\\b9a3862c-1907-41d0-a5a3-6758aaa53333\\tasks\\a085abe39b9e405d4.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:7962:299)","timestamp":"2026-04-16T13:04:50.652Z"},{"error":"McpToolCallError: Unexpected identifier 'as'\n    at JD_ (B:/~BUN/root/src/entrypoints/cli.js:4810:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:41:40.532Z"},{"error":"McpToolCallError: Element with uid 1_210 no longer exists on the page.\nCause: Protocol error (DOM.resolveNode): No node with given id found\n    at JD_ (B:/~BUN/root/src/entrypoints/cli.js:4810:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:42:26.351Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Extra usage is required for long context requests.\"},\"request_id\":\"req_011Ca7Yimo5RDjjRosdQHf7R\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:52626)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:42:40.425Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Extra usage is required for long context requests.\"},\"request_id\":\"req_011Ca7YnRKe33f2GbbkzPxCE\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:52626)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:43:29.680Z"},{"error":"Error: Reactive compact: summarization returned API error: API Error: Extra usage is required for 1M context · run /extra-usage to enable, or /model to switch to standard context\n    at fw4 (B:/~BUN/root/src/entrypoints/cli.js:2342:1125)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:43:29.681Z"},{"error":"Error: Error during compaction: API Error: Extra usage is required for 1M context · run /extra-usage to enable, or /model to switch to standard context\n    at kz1 (B:/~BUN/root/src/entrypoints/cli.js:5501:1112)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T13:43:29.681Z"}]

extent analysis

TL;DR

The issue is likely due to the conversation compactor function failing to work, resulting in an "Extra usage is required for 1M context" error, and can be mitigated by running the /extra-usage command to enable extra usage or switching to the standard context using the /model command.

Guidance

  • The error messages suggest that the conversation compactor function is failing, leading to the "Extra usage is required for 1M context" error.
  • Running the /extra-usage command may enable extra usage and resolve the issue.
  • Alternatively, switching to the standard context using the /model command may also resolve the issue.
  • The provided error logs indicate multiple errors, including rate limit errors and API errors, which may be related to the conversation compactor function failure.

Example

No code snippet is provided as the issue seems to be related to the functionality of the conversation compactor and the provided error logs do not suggest a specific code-related fix.

Notes

The issue may be related to the version of the software being used (2.1.110) and the platform (win32). The error logs suggest that there are multiple errors occurring, which may be related to the conversation compactor function failure.

Recommendation

Apply the workaround by running the /extra-usage command to enable extra usage or switching to the standard context using the /model command, as the error messages suggest that this may resolve the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING