[BUG] Claude Code v2.1.24+ broken on macOS - cache_control.ephemeral.scope error
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?
Anything later than v2.1.23 causes :
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"system.2.cache_control.ephemeral.scope: Extra inputs are not
permitted"},"request_id":"req_011CXoxb4QmrysjyNqcTUneF"}
What Should Happen?
Error: system.2.cache_control.ephemeral.scope: Extra inputs are not permitted
Details:
- Account: locotoki@gmail.com (Claude Max)
- Platform: macOS (M1), Portugal
- Works: v2.1.23 and earlier
- Broken: v2.1.24, 2.1.25, 2.1.28, 2.1.29, 2.1.31
- Same account works on Windows with v2.1.29
- CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1 does NOT fix it
The "scope" field in cache_control.ephemeral appears to be rejected by my account's API endpoint. This may be region-specific or account-specific routing issue.
Error Messages/Logs
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"system.2.cache_control.ephemeral.scope: Extra inputs are not
permitted"},"request_id":"req_011CXoxb4QmrysjyNqcTUneF"}
Steps to Reproduce
anything later than v2.1.23 causes this error, for both Native and npm installation
Claude Model
Not sure / Multiple models
Is this a regression?
Yes, this worked in a previous version
Last Working Version
v2.1.23
Claude Code Version
2.1.23 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 14 comments on GitHub. Read the full discussion on GitHub ↗