[BUG] exceed context limit

Resolved 💬 2 comments Opened Jan 7, 2026 by gshilin-sdb Closed Jan 7, 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?

A number of times per day I'm getting this error

API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"input length and `max_tokens` exceed context limit: 193125 + 21333 >
 200000, decrease input 
    length or `max_tokens` and try again"},"request_id":"req_vrtx_011CWscdZLbCzvTdKUeranGy"}

and claude is unable to do anything afterwards. Even memorize the current state.
The only solution is to restart it.

What Should Happen?

At least ability to memorize current state would be good.

Error Messages/Logs

Steps to Reproduce

It was a long-long-long session with a number of compacting.

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

v2.0.76

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Other

Additional Information

OS: Fedora 43
Terminal: GNOME Terminal 3.56.3 for GNOME 48
Shell: bash

<img width="1613" height="402" alt="Image" src="https://github.com/user-attachments/assets/d4103f5c-064d-46a4-abe5-7a1cb480e279" />

View original on GitHub ↗

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