claude-code - 💡(How to fix) Fix [Bug] Anthropic API: claude-opus-4-7 context window silently degraded from 1M to 400k tokens [1 comments, 2 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#53790Fetched 2026-04-28 06:47:12
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
3
Author
Timeline (top)
labeled ×4commented ×1cross-referenced ×1

Error Message

[{"error":"Error: Request was aborted.\n at _16 (/$bunfs/root/src/entrypoints/cli.js:5379:1669)\n at next (native:1:11)\n at V$K (/$bunfs/root/src/entrypoints/cli.js:8838:5693)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T07:01:24.645Z"},{"error":"Error: Compaction interrupted · This may be due to network issues — please try again.\n at GC7 (/$bunfs/root/src/entrypoints/cli.js:4807:7050)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T07:01:24.646Z"},{"error":"Error: Request was aborted.\n at _16 (/$bunfs/root/src/entrypoints/cli.js:5379:1669)\n at next (native:1:11)\n at V$K (/$bunfs/root/src/entrypoints/cli.js:8838:5693)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T07:03:43.657Z"},{"error":"Error: Compaction interrupted · This may be due to network issues — please try again.\n at GC7 (/$bunfs/root/src/entrypoints/cli.js:4807:7050)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T07:03:43.658Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T07:04:04.627Z"}]

Code Example

[{"error":"Error: Request was aborted.\n    at _16 (/$bunfs/root/src/entrypoints/cli.js:5379:1669)\n    at next (native:1:11)\n    at V$K (/$bunfs/root/src/entrypoints/cli.js:8838:5693)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T07:01:24.645Z"},{"error":"Error: Compaction interrupted · This may be due to network issues — please try again.\n    at GC7 (/$bunfs/root/src/entrypoints/cli.js:4807:7050)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T07:01:24.646Z"},{"error":"Error: Request was aborted.\n    at _16 (/$bunfs/root/src/entrypoints/cli.js:5379:1669)\n    at next (native:1:11)\n    at V$K (/$bunfs/root/src/entrypoints/cli.js:8838:5693)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T07:03:43.657Z"},{"error":"Error: Compaction interrupted · This may be due to network issues — please try again.\n    at GC7 (/$bunfs/root/src/entrypoints/cli.js:4807:7050)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T07:03:43.658Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T07:04:04.627Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description Max20: Opus 4.7 1M has been siltently degraded to 400k context instead of 1M. When running /context I see the following: Opus 4.7 (1M context) / claude-opus-4-7[1m] / 357.3k/400k tokens (89%). Why is this? Why is it telling me its a 1M model but I am capped at 400k tokens?

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.119
  • Feedback ID: 96181009-f6d0-4092-b1b0-c550677430b0

Errors

[{"error":"Error: Request was aborted.\n    at _16 (/$bunfs/root/src/entrypoints/cli.js:5379:1669)\n    at next (native:1:11)\n    at V$K (/$bunfs/root/src/entrypoints/cli.js:8838:5693)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T07:01:24.645Z"},{"error":"Error: Compaction interrupted · This may be due to network issues — please try again.\n    at GC7 (/$bunfs/root/src/entrypoints/cli.js:4807:7050)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T07:01:24.646Z"},{"error":"Error: Request was aborted.\n    at _16 (/$bunfs/root/src/entrypoints/cli.js:5379:1669)\n    at next (native:1:11)\n    at V$K (/$bunfs/root/src/entrypoints/cli.js:8838:5693)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T07:03:43.657Z"},{"error":"Error: Compaction interrupted · This may be due to network issues — please try again.\n    at GC7 (/$bunfs/root/src/entrypoints/cli.js:4807:7050)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T07:03:43.658Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-27T07:04:04.627Z"}]

extent analysis

TL;DR

The Opus 4.7 model is reported as 1M context but is capped at 400k tokens, suggesting a potential discrepancy between the model's advertised capacity and its actual behavior.

Guidance

  • The error messages indicate issues with request abortion and compaction interruption, which may be related to network problems or server-side limitations.
  • Verify the model's actual capacity by checking the documentation or contacting the model's developers to confirm the expected behavior.
  • Investigate potential network issues or server-side limitations that could be causing the request abortions and compaction interruptions.
  • Consider retrying the request or checking for any updates to the model or its dependencies.

Notes

The provided information does not include explicit details about the model's implementation or the underlying infrastructure, making it challenging to provide a definitive solution.

Recommendation

Apply workaround: Retry the request or check for updates to the model or its dependencies, as the error messages suggest potential network or server-side issues.

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

claude-code - 💡(How to fix) Fix [Bug] Anthropic API: claude-opus-4-7 context window silently degraded from 1M to 400k tokens [1 comments, 2 participants]