Claude Code v2.1.225 Fixes OAuth Token Rotation, Adds Gateway Spend-Limit Support

✍️ OpenClawRadar📅 Published: August 8, 2026🔗 Source
Claude Code v2.1.225 Fixes OAuth Token Rotation, Adds Gateway Spend-Limit Support
Ad

Claude Code v2.1.225 shipped with a mix of bug fixes and new features, headlined by gateway spend-limit support and a fix for a nasty 401 that could break headless sessions.

Key Fixes

  • OAuth token rotation: Fixed a transient 401 that replaced a long-lived CLAUDE_CODE_OAUTH_TOKEN with a short-lived token from a stored login, breaking headless sessions until restart. Now the token is handled correctly.
  • macOS MCP OAuth: Fixed intermittent 401 bursts on MCP OAuth servers after a keychain read timeout, making authentication more reliable.
  • Auto mode safety filter: Safety-filter refusals of its own permission check no longer count toward the consecutive-block limit. The action is still denied, but the model is told to move on rather than retry.
  • Headless sessions: Cross-session messages no longer stay parked without notice or expiry during startup or in headless mode.
  • Remote Control resume: Fixed conversation history breaking after very large conversations were compacted.
  • Agent list hover: Hovering over a session in another project no longer changes the directory for the next agent.
  • self-hosted-runner: Exits at startup with a clear error if --base-dir cannot be created or written, instead of registering and failing every session.
  • Web sessions: Fixed sessions being misreported as stuck, which caused a growing event backlog to resend on every reconnect.
  • VSCode Focus view: Fixed folding that hid the latest to-do list, pending question context, and settled answers. Thinking-only folds now show "Thought for Ns" and auto-collapse when the turn completes.
Ad

New Features and Improvements

  • Gateway spend limits: Added support for gateway spend limits in usage warnings. The limit-reached message now names the cap, its reset time, and the operator's message. (Requires the gateway on 2.1.225).
  • Workspace trust for agents: claude agents now prompts for workspace trust in untrusted directories, matching claude behavior.
  • Remote Control photos: Photos attached from the Claude app are now shown directly to Claude, instead of being read from disk with a separate tool call.
  • SendMessage: Can now start a conversation with Remote Control sessions on other machines by name (ListAgents shows them as name [ref]), instead of only replying after they message you first. Also, a Remote Control recipient you already confirmed is never swapped for a same-named session on this machine when its own list couldn't be checked.

This release is primarily a stability pass, addressing several long-standing issues in headless and remote workflows. The gateway spend limit support is particularly useful for teams with cost controls.

📖 Read the full source: GitHub Claude-Code

Ad

👀 See Also