What changed
70+ additions, fixes, and behavioral changes: onFailure: "block" added to Agent SDK hook callbacks (fail-closed policy); a prompt added before web/shell tools send the session's account email to the network; anthropic.plan, anthropic.seat_type, anthropic.provider, anthropic.custom_base_url added to OTel metrics/events/spans; a new cost-report endpoint (GET /v1/organizations/analytics/cost) on Claude apps gateways with daily IdP group records; CLAUDE_CODE_DISABLE_NESTED_SESSION_ID=1 env var for self-hosted runners; the Read tool "file unchanged" stub removed; SendMessage delivers to running background agents sooner; subagents now use their own model's default effort level; 50+ bug fixes across cloud, Windows, VSCode, MCP, compaction, and OTel proxy handling.
TL;DR
Claude Code v2.1.317 is a 70+-change production-hardening release: fail-closed hook semantics, pre-send email security, OTel enrichment with plan/seat metadata, a gateway cost-report admin endpoint, and over 50 bug fixes spanning compaction, Windows path limits, VSCode parallel tool calls, and OTel proxy timeouts.