[BUG] Error during compaction: Error: API Error: Request was aborted.

Resolved 💬 6 comments Opened May 27, 2025 by skerit Closed Jan 3, 2026

Environment

  • Platform (select one):
  • [x] Anthropic API
  • Claude CLI version: 1.0.3
  • Operating System: Endeavour Linux 6.14.7
  • Terminal: Wezterm

Bug Description

Whenever I do a manual compact I get the Error during compaction: Error: API Error: Request was aborted. error around the 45 second mark.
Auto compacts are also affected, but I don't ever see the error.
I just see that it has started auto-compacting, but then it stops after +/- 45 seconds, and a few seconds later it tries again.

Steps to Reproduce

  1. /compact
  2. That's it

Expected Behavior

It should compact without problem

Actual Behavior

It does not

Additional Context

I got the Claude Max Maximum Flexibility plan a few days ago.
I have noticed that when I manually switch from the default model to the sonnet model (using /model), it does work. But I have to do this manually, of course. (I don't want to keep using sonnet all the time, when claude-code sometimes wants to use opus)

View original on GitHub ↗

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