Understand this story
Claude Code has added the `/claude-api api-version` command, which can migrate Claude API code to API version `2026-10-21`. This change appears in Claude Code v2.1.307. The same version also adds a `claude_code.safety_event` OpenTelemetry event for each tool call that is blocked, prompted, or returned by permission rules, auto mode, safety checks, hooks, or the sandbox. This version also fixes the issue where alias models such as `opus[1m]` reported model-not-found when `CLAUDE_CODE_DISABLE_1M_CONTEXT` was set, as well as the issue where MCP servers in `claude -p` falsely reported "authentication required" when the macOS keychain was locked. This version has now been released, with no subsequent developments yet.
AI-generated from public reports
Latest development · Report
Claude Code v2.1.307 releasedDevelopments
1 confirmed developments
- Source:Claude Code:GitHub Releases
Reports and discussion timeline
Browse reports and discussion by time. Their evidence levels remain distinct.
Oct 22
Claude Code:GitHub ReleasesFirst-party
Claude Code v2.1.307 released
Claude Code v2.1.307 adds the `/claude-api api-version` command, which can migrate Claude API code to API version `2026-10-21`, and adds a `claude_code.safety_event` OpenTelemetry event for each tool call that is blocked, prompted, or returned by permission rules, auto mode, safety checks, hooks, or the sandbox. This version also fixes the issue where alias models such as `opus[1m]` reported model-not-found when `CLAUDE_CODE_DISABLE_1M_CONTEXT` was set, as well as the issue where MCP servers in `claude -p` falsely reported "authentication required" when the macOS keychain was locked.