github alexgreensh/token-optimizer v5.7.13

latest releases: v5.7.15, v5.7.14
22 hours ago

Fix: Context pressure gates prevent thinking block API errors

When extended thinking is active and Token Optimizer hooks inject system content, cumulative injection can trigger API 400 errors. This release adds context-pressure awareness to all hook injection points.

What changed:

  • Context pressure gating: hooks self-throttle based on context fill level (75% high, 90% critical)
  • Checkpoint caps: OpenClaw and OpenCode capped at 4000 chars with surrogate-pair safe truncation
  • Fail-open design: pressure check failures default to normal operation

Platforms: Claude Code, OpenClaw, OpenCode, Codex

Reported by: Yuval Shchory

Don't miss a new token-optimizer release

NewReleases is sending notifications on new releases.