Unofficial AI-summarized news site (not affiliated with any AI company)
AI News JP / www.ai-news.jp
🔵 Standard AI Summary · Source: Claude Code Releases

Headless 401 loops and message expiry fixed. Spend-limit support quiet but essential for enterprise

Claude Code v2.1.225: Gateway spend limits, workspace trust, and session fixes

Original: v2.1.225

Importance: Claude Code ユーザーの安定性と利便性に関わるマイナーバージョンアップで、実装影響は中程度。既存セッション運用に直結する修正が複数含まれる

Summary

Anthropic released Claude Code v2.1.225 with improvements across session stability, authentication, and resource management. The version adds gateway spend-limit support to usage warnings, showing cap amount, reset time, and operator messages. It introduces workspace trust prompts for untrusted directories, fixes transient 401 errors when OAuth tokens expire, and resolves MCP OAuth authentication issues on macOS. Headless session message expiry, Remote Control conversation history issues after compaction, and VSCode Focus view folding behavior have been addressed. SendMessage now supports cross-machine Remote Control session invocation by name.

Key Points

  • Gateway spend-limit support added; caps, reset times, operator messages now displayed
  • Transient 401 errors fixed when OAuth tokens refresh; macOS keychain timeout handled
  • Headless session cross-session message expiry fixed, no more parking without notice
  • Remote Control conversation history corruption on resume after compaction resolved
  • SendMessage now supports Remote Control session invocation by name across machines
View developer notes (APIs, breaking changes, migration)

v2.1.225 patches critical session lifecycle and authentication bugs. Key fixes: (1) Transient 401 when replacing CLAUDE_CODE_OAUTH_TOKEN with short-lived stored token broke headless sessions until restart—now resolved. (2) MCP OAuth servers on macOS intermittently failed with 401 burst after keychain read timeout; now robust. (3) cross-session messages were parking without expiry in headless and startup contexts; now cleaned up. (4) Conversation history corruption on Remote Control resume after large conversation compaction fixed. (5) SendMessage now accepts Remote Control sessions on other machines by name (`name [ref]` format from ListAgents) without waiting for first message. (6) Gateway spend-limit messages now display cap, reset time, operator message (requires gateway ≥2.1.225). Auto mode safety-filter refusal incorrectly counted toward consecutive-block limit; now only denied, model told to proceed.

Claude CodeAPI/SDKAudience: 開発者Audience: 企業導入担当

Source: https://github.com/anthropics/claude-code/releases/tag/v2.1.225

Outlet: Claude Code Releases

This article is an AI-generated summary (OpenAI GPT-4o-mini) of publicly available information from Anthropic, OpenAI, Google, Meta, Mistral, DeepSeek, Sakana, and other vendors. The original source URL is always provided in accordance with fair-use citation requirements. Summaries are AI-generated and may contain mistranslations or misinterpretations. Always verify details with the original source.