[BUG] API ERROR

Status Fixed / completed
Maintainer reply None cached
Activity 1 comment · opened Jul 16, 2026 · closed Jul 16, 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?

api error happend when the context window limit unreach.

<img width="454" height="273" alt="Image" src="https://github.com/user-attachments/assets/68cf3a71-2550-4ed8-88f3-d22d01932d45" />

What Should Happen?

Claude should not raise this error when the context window limit unreach.

Error Messages/Logs

API Error: 400 Your input exceeds the context window of this model. Please adjust your input and try again.

Steps to Reproduce

  1. just open and let it work, you will see it.

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

v2.1.211

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

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