[BUG] Error: max_tokens 232001 exceeds limits

Resolved 💬 3 comments Opened Jan 24, 2026 by imaginewebllc Closed Jan 29, 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?

This is a BUG in Claude CLI that started on December 29, 2025. Every error shows max_tokens: 232001 - the CLI is incorrectly calculating max_tokens as 232K, which is impossible.

This is NOT my configuration. This is a bug in the CLI itself. Since claude --session-id "$(uuidgen)" --model sonnet works, there's likely a bug in how it resumes sessions or initializes the default session.

What Should Happen?

Claude does not work when using the default "claude" prompt.

Error Messages/Logs

Steps to Reproduce

Type "Claude"

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.19

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

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