# Claude Code 2.1.225: OAuth token and MCP auth fixes, gateway spend limits

> Mostly reliability work around authentication and Remote Control. The notable fix: a transient 401 could replace a long-lived `CLAUDE_CODE_OAUTH_TOKEN` with a stored login's short-lived token, breaking headless sessions until restart.

| | |
|---|---|
| **Tool** | Claude Code |
| **Version** | 2.1.225 |
| **Kind** | release |
| **Published** | 2026-08-07 |
| **Observed** | 2026-08-11 |
| **Significance** | 2/5 |
| **Breaking** | no |
| **Categories** | fix, feature |

## What changed


- Fixed a transient 401 replacing a long-lived `CLAUDE_CODE_OAUTH_TOKEN` with a stored login's short-lived token, breaking headless sessions until restart
- Fixed MCP OAuth servers on macOS intermittently failing with a burst of 401 errors after a keychain read timed out
- Added gateway spend-limit support to the usage warning; the limit-reached message names the cap, its reset time, and the operator's message (requires the gateway on 2.1.225)
- Added a workspace trust prompt to `claude agents` for untrusted directories
- `SendMessage` can now start a conversation with your Remote Control sessions on other machines by name (`ListAgents` shows them as `name [ref]`), instead of only replying after they message you first
- Fixed auto mode counting a safety-filter refusal of its own permission check toward the consecutive-block limit
- Fixed cross-session messages staying parked without notice or expiry in headless sessions and during startup
- Fixed `claude self-hosted-runner` registering and then failing every session when `--base-dir` can't be created or written; it now exits at startup with a clear error
- Fixed conversation history breaking on Remote Control session resume after very large conversations were compacted
- Fixed web sessions being misreported as stuck and re-sending a growing event backlog on every reconnect


## Sources

- [changelog_md](https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md) — retrieved 2026-08-11

## Community

_No curated reactions recorded. Facts and community takes are kept in separate layers
and never blended._

---
Canonical: https://changelogs.info/claude-code/2-1-225
Entity: https://changelogs.info/claude-code
Event ID: `evt_2026-08-07_claude-code_2-1-225`
Licence: event synthesis © changelogs.info, CC BY 4.0. Linked sources belong to their vendors.
