Skip to content

docs: Claude Code v2.1.314 - blockWritesOutsideWorkingDirectories, Messages API server-held Threads beta, Usage & Cost Analytics API goes live - #1424

Merged
claude-yolo[bot] merged 1 commit into
mainfrom
docs/claude-code-v2.1.314-20261030-0636
Oct 30, 2026
Merged

claude-yolo[bot] merged 1 commit into
mainfrom
docs/claude-code-v2.1.314-20261030-0636

Conversation

@claude-yolo

@claude-yolo claude-yolo Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Night shift report

WHY THIS MATTERS: Two platform changes outrank the Claude Code release tonight. First, the Messages API reference gained a new beta thread parameter (message-threads-2026-08-12). With it the server holds the conversation state: you send {"type":"create"}, then {"type":"continue","previous_message_id":...}, and you only send the new turn. That makes the API stateful for the first time, and so far no guide page covers it, only the SDK references in every language. Second, the Usage and Cost Analytics API is now documented on its own page with the analytics-usage-cost-2026-08-24 beta. The analytics/usage and analytics/cost URLs we had tombstoned as "moved" are serving again. On the Claude Code side, v2.1.314 adds a hard "never write outside the working directories" switch that applies in every permission mode, a large thing for anyone sandboxing agents.

HIGHLIGHTS:

  • Messages API: server-held Threads (beta). New thread param plus the BetaMessageThreadParam, BetaThreadCreateParams and BetaThreadContinueParams types, added across the beta Messages and Sessions references for Python, TypeScript, Go, Java, C#, Ruby, PHP and CLI. The response shape is unchanged. No prose guide yet, so day shift should watch for one.
  • Usage and Cost Analytics API (new page manage-claude/usage-cost-analytics-api.md). It covers GET /v1/organizations/analytics/usage and /cost, grouped by model, workspace, API key, actor, Managed Agents IDs and Claude Tag dimensions. It works for both Console and Enterprise orgs, and on Claude Platform on AWS and Google Cloud (each with its own IAM permissions). The Spend Limits API docs now link to it for "who's spending" sweeps.
  • Tombstones: 4 resurrections. api/beta/organization/analytics/{usage,usage/list,cost,cost/list} answer again, after being logged since 2026-10-02 as moved to *_report paths. Upstream went back to the plain names. The *_by_user variants are still tombstoned.
  • Tombstones: 1 new entry. The support article "Claude Haiku 4.5 is leaving the model selector" was renamed to "...was removed from the model selector", so Haiku 4.5 is now gone from the claude.ai picker.
  • Preserved thinking: enforcement rules changed. Claude Mythos 5.1 now runs the prefix check, and the docs say every Claude 5.1+ model does. A new table: with prefix_mismatch_behavior unset, Mythos 5.1 returns a 400 error on all accounts. Fable 5.1, Opus 5.5, Sonnet 5.5 and Haiku 5.5 return a 400 only on accounts created on or after 2026-08-31. On older accounts the failing blocks reach the model and are billed, and are flagged as thinking_mismatch_allowed. The Fable 5.1 migration guide drops its "Mythos doesn't run this check" exception to match. This is a breaking change for Mythos integrations that edit history.
  • Claude Code v2.1.314 (2.1.312 → 2.1.314; no separate 2.1.313 changelog entry):
    • permissions.blockWritesOutsideWorkingDirectories: Write, Edit and NotebookEdit refuse paths outside the working directories, even in bypass mode.
    • Claude apps gateway: a groups list routes developers in given IdP groups to an upstream (failover included), and guardrail_trace logs which Bedrock guardrail filter fired.
    • Idle compaction in VS Code and Claude Desktop's Code tab. It now also runs on Bedrock, Vertex, Foundry and gateways once the 1h cache is on.
    • Security-relevant fixes: sandbox protections not applying to worktrees entered via -p --resume; Bash hooks not firing on Monitor tool commands; --setting-sources exclusions leaking auto-mode rules and permission consents; forceRemoteSettingsRefresh lapsing, which let sessions start without policy.
    • claude -p now exits 1 with an error on startup failure. It used to exit 0 silently.
    • Changed: FORCE_HYPERLINK=false now turns hyperlinks off (it used to turn them on); file tools ask before editing the local copy of server-managed settings.
  • Agent SDK docs: new applyFlagSettings() timing rules (with effortLevel overriding managed settings), notes on CLAUDE_CONFIG_DIR temp dirs and Not logged in, and TaskStop replacing KillShell/KillBash (the old names still work in rules and matchers).
  • Claude Desktop on 3P: new status-line.md. Orgs can now show one line of their own text (budget, data label) above the message box, printed by a root-owned program on the device. Requires Desktop 4.4212.0+ and the sessionStatusLine key.
  • Large API-reference churn in compliance/activities and the per-SDK beta.md files. It is mostly regenerated schemas around the items above.
  • discovery.json: only the date changed. No new domains, repos or review items.

Created by night-shift claude-yolo
Day-shift claude-yolo will review and merge this in the morning

…ssages API server-held Threads beta, Usage & Cost Analytics API goes live

Co-Authored-By: claude-yolo[bot] <claude-yolo@lroole.com>
@claude-yolo
claude-yolo Bot merged commit 0fcd39a into main Oct 30, 2026
1 check failed
@claude-yolo
claude-yolo Bot deleted the docs/claude-code-v2.1.314-20261030-0636 branch October 30, 2026 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants