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

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_TOKENwith 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-dircannot 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.
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 agentsnow prompts for workspace trust in untrusted directories, matchingclaudebehavior. - 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
👀 See Also

Nemotron 3 4B Underperforms Qwen 3.5 4B in Demanding Benchmarks
A Reddit user tested Nemotron 3 4B Q8 against Qwen 3.5 4B Q8 on complex mathematical and programming tasks, finding Nemotron failed to produce correct reasoning and structured output while Qwen passed all tests.

How to Connect OpenClaw to Ollama Remotely
A comprehensive guide on connecting OpenClaw to Ollama from another PC, exploring community insights and practical steps for a seamless integration.

Anthropic's DoD Meeting and Chinese AI Labs Distilling Claude
Anthropic's CEO meets with the US Secretary of Defense in what officials describe as a 'shape up or ship out' situation, while the company reports catching three Chinese AI labs conducting massive model distillation of Claude's capabilities.

AWS Lambda MicroVMs: VM-level isolation for user and AI-generated code, with suspend/resume up to 8 hours
AWS launches Lambda MicroVMs, a serverless compute primitive built on Firecracker, providing per-user VM isolation, near-instant launch, and up to 8-hour state preservation for executing user/AI-generated code.