[BUG] API Error Prompt is too long

Resolved 💬 1 comment Opened Apr 22, 2026 by niels-hop Closed May 27, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

On the windows desktop app (probably also on mac). There is a error that the prompt is too long while the agent is running. But the context is only filled to 51% (101.5k tokens). This happens often on long running tasks. there is no option to auto compact, or just remove older context so this screws up the workflow.
This started happening on the new desktop app, never had this issue before.

What Should Happen?

Agent should continue running and the desktop app should have features to mitigate this behaviour.

Error Messages/Logs

API Error
Prompt is too long

Steps to Reproduce

-

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

Claude 1.3883.0 (93ff6c)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗