[Bug] Sonnet agents exceed token limits in workflows at 31.5k tokens

Open 💬 0 comments Opened Jun 30, 2026 by Rabusek

Bug Description
My sonnet agents in workflows get stuck exactly at 31.5k tokens. as per claude investigation

  • Root cause found (5 attempts in): not concurrency, not orchestration — general-purpose agents at high effort ignore "no Bash / one-shot", wander, hit 250KB transcripts, never reach Write. Caught one mid-Bash-call

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.197
  • Feedback ID: 04cee0cb-f253-4f9e-8961-e6da5f6f13b1

Errors

[]

View original on GitHub ↗