Skip to content

v2.0.5

Choose a tag to compare

@cnighswonger cnighswonger released this 20 Apr 01:20
· 226 commits to main since this release

BUGFIX: TTL ordering violation causes 400 error at Q5h=100%

When quota hits 100%, CC places ttl: "5m" cache_control markers. The interceptor was adding ttl: "1h" markers on other blocks, violating Anthropic's ordering constraint. Result: 400 invalid_request_error.

Fix: detect existing TTL tier from the payload before any extension runs. If any block has 5m, all injected markers now use 5m to match — across TTL injection, cache_control_normalize, and cache_control_sticky.

Reported by @cowwoc (#44).

npm update claude-code-cache-fix

163 tests passing.