Follow Discord
Writing the changelog v2.1.331 rate entries · 3/5

First lookThis one went up minutes after the release hit npm, off a quick read of the bundle, so it's thin and some of it will change. The full changelog replaces this page when the deep run finishes.

Claude Code v2.1.331

next 1 entry read v2.1.330 → v2.1.331 Mods API: +2 added · 0 removed · 13 changed · 22 docs only Markdown JSON Follow Unofficial

A first look at v2.1.331, written minutes after it reached npm from a quick read of the bundle. It is thin on purpose and some of it will turn out to be wrong. The full changelog replaces this page when the deep run finishes.

Written by our agent from the shipped bundle, not by Anthropic.

Want the reasoning? Read walks every section of this release, each entry opening to what changed and why.

Read this release → Every row →
Pick an entry · j / k steps through · rest on a row to peek
1 entry

First read of the bundleopen

685 findings

Found so farclose

685 raw findings from the deep run, still being written up. Last one in at . The written-up page replaces them when it lands.

  1. Rate-limit dialog gives an admin-specific message for group overage

    When the user is blocked at the org level and the overage state has an overageGroupUuid, the extra-usage row reads `Ask your admin to ...` instead of the generic 'Ask your admin for more usage'.

  2. Session-owner hold now blocks API client creation

    Client creation now throws a session_owner error when the session-owner hold is active. A new check runs before provider routing, so it also covers non-OAuth paths.

  3. Remove-server and plugin dialogs use new shared components

    The remove-server confirm now uses a dedicated yes/no component with a risky flag.

  4. Onboarding no longer shows 'Let's get started.' heading

    The theme step no longer chooses between a 'Let's get started.' heading and a 'Theme' heading. It now shows a 'Theme' heading unless a flag (!F) is set, and shows nothing when it is.

  5. Display-width-aware text truncation

    The truncate helper used to walk grapheme segments itself. It now calls a shared width-aware cut function and appends an ellipsis.

  6. Self-hosted runner register call takes a configurable timeout

    `registerRunner` now takes a second argument for the timeout, replacing the fixed 15000 ms. The rest of the diff in this area is renaming.

  7. Keybinding resolution uses per-key binding lists

    The keybinding lookup now iterates bindings returned for the first keystroke's key, instead of the full list.

  8. Markdown lexer restructured (list, blockquote, table)

    The markdown lexer's list item, blockquote and table parsing was reworked. Blockquote and list continuation now share a state object. Table detection requires a delimiter-row regex match.

  9. Cloud MCP task stop note points to a follow-up tool for sep2663 servers

    The note shown when an MCP task is stopped now has a conditional suffix. When the task is an mcp_task using protocol sep2663 and a check passes, the note adds that another tool 'then tells what the server says'. Otherwise it ends as before.

  10. Profile-conflict error now uses a helper for its hint

    The error for a profile that cannot give a claude.ai sign-in no longer hardcodes 'unset ANTHROPIC_PROFILE ${Fs}, then restart Claude Code'. It now calls a helper, Io(!1), to build that part.

  11. Permission prompt y/n input handling changed

    The y/n text prompt now accepts typed multi-character keys. It clears the input on paste when text is present. Before, it only handled the key-length case.

  12. publish_files accepts a localFile path

    The publish_files tool mapping gained localFile: 'path'.

  13. Privacy settings: opt-in toggle guarded against double confirm

    The Data privacy dialog ignores a CONSENT_STATE_OPTED_IN choice after the dialog has already closed.

  14. Subagent concurrency no longer short-circuits on CLAUDE_CODE_REMOTE or cowork

    The concurrency limit function previously returned the base limit when CLAUDE_CODE_REMOTE or CLAUDE_CODE_IS_COWORK was set. It now uses a single Ye() check. CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS still takes priority.

  15. Cron scheduling permission check uses a helper instead of an exact auto-mode comparison

    The cron tool's permission check now calls a helper on the permission mode. It used to test for mode === "auto". The result is still a passthrough to classifier review.

  16. Feedback and spend display tweaks

    The spend limit text now passes a third argument to the currency formatter. The feedback consent screen now renders the description with a component. The branch (fork) feature writes a replCloudsOnly stamp.

  17. UTC detection and TZ handling changed

    The UTC check now accepts a second path. If one new condition and a helper both hold, it returns true without checking the timezone offset. Otherwise it still requires an offset of 0 and either the helper or an Intl timezone of "UTC".

  18. set_proactivity_level rejection reshaped

    In cloud-hosted sessions, set_proactivity_level is still rejected with the message "set_proactivity_level is not available in a cloud-hosted session yet". The rejection is now built through a helper call instead of an inline object.

  19. Bash permission rule matching is faster

    Rule matching now normalizes each command once. It skips rules by first-character precheck and by an xargs/prefix precheck.

  20. Auth check adds a device_check_unavailable reason

    The auth failure classifier now returns reason "device_check_unavailable" when a schema's safeParse of the response succeeds. Previously it only returned untrusted_device or session_stale_relogin.

  21. Structured output call is awaited

    The structured-output tool's call now awaits a validation or handler step before it returns "Structured output provided successfully".

  22. Sandbox dialog request accepts extra parameters

    `getSandboxDialog` now forwards optional parameters in the `get_sandbox_dialog` control request.

  23. Auto-background gate simplified: tengu_framed_osprey now delegates to a shared check Gated

    The function that checks tengu_framed_osprey used to also require three other negated conditions. It now requires only the gate plus one shared helper. The auto-background task condition changed in the same way: `!(d && g())` became `!(c && (f() || !vat()))`. The gate falls back to false.

  24. fileCheckpointingEnabled added to a settings allowlist Gated

    `fileCheckpointingEnabled` is added to an alphabetised list of setting keys (next to `feedbackDrafts` and `isolatePeerMachines`). The key is already read and written elsewhere in the bundle, including a settings toggle UI, so this looks like list membership rather than a new setting.

  25. /steward gains PR-state detection and a forge==='git' short-circuit

    In /steward's PR lookup, an unknown result now also carries `noGitHubRemote` or `noSuchPullRequest` flags when stderr matches. The `gh` calls now pass an `env` object. One checks function returns [] for a certain pattern. A function that lists PR checks or comments returns [] when `forge === "git"`. The `/steward` literal appears once in this build and 0 times in the previous one.

  26. Hook config accepts mcp_tool hooks with if/on_failure/status_message

    The hook parser gains a branch that accepts `mcp_tool` hooks when a condition holds on the set `o`. It maps `on_failure` to `onFailure` and `status_message` to `statusMessage`.

  27. /ship gains a card/yes/texts path and an auth-restricted PR text generator

    The /ship push function ps now takes card, yes and texts options. With a card, it skips the typed-line check and the countdown, and it shows the proposed title and description. The PR text generator (querySource ship_pr_texts) now returns early unless the provider is first-party and a second check passes. It also calls onLate when the model call is aborted late. The PR title and body can now come from these generated texts.

  28. One-click task check-in system prompt removed

    A string constant headed "# How this task started" has been removed. It told the model to check in first, and to change nothing, when a task was started from a list of Claude Code suggestions. In its place is `var Fm = 3,`. I did not look for other users of the text.

  29. Plan mode entered by the model is kept when switching modes

    When planEnteredBy is 'model', toolPermissionContext now sets planEnteredBy to 'model_from_other_mode'. Before, any non-void value was cleared.

  30. New CLAUDE_CODE_LAZY_WORKTREE env var Gated

    `CLAUDE_CODE_LAZY_WORKTREE` was added to the env-var list that is forwarded to or recognised for child processes. It is also read in a worktree helper. That helper returns true only when several conditions hold and `s.CLAUDE_CODE_LAZY_WORKTREE === void 0`. Setting the variable therefore turns that helper's behaviour off. The name appears 3 times in this build and 0 in the previous one.

  31. Usage-credit requests can be scoped to a group pool

    The extra-usage request flow now checks pending admin requests for group_pool scope. When a pool group applies, the message says 'already asked your admin'. The confirm-admin-request result also carries poolGroupUuid.

  32. Queued-input messages and 'opensOwnTurn' marked-notification handling

    In the SDK/remote input loop, user frames can now carry a markedNotification. Those frames are enqueued with opensOwnTurn and admission reporting. A queued_notification can be acknowledged and dropped early, and refused ones report a 'refused' outcome.

  33. /reload-plugins also installs optional dependencies

    Reload now resolves and installs optional plugin dependencies and reports them as installed.

  34. First-week check-ins rewritten

    The first-week/check-ins class is reworked. It adds an 'over' state, a periodic refresh, an engineer flag, the mark card-passed, and a words version log. The sixth-session notice and the turn-off methods are removed. The first-session loop now keeps polling standing.

  35. tengu_lucky_widget size check replaced

    The size check used `e > XE.targetRawSize || (e > O7 && b("tengu_lucky_widget", !1) === !0)`. It now takes no argument and calls `Se(Io, { safe: !0 })`. The tengu_lucky_widget gate is no longer read at this place.

Verbatim
Awaiting notes

Official release notes pending

Anthropic has not published official notes for v2.1.331 yet. This section updates automatically when the entry appears in the upstream changelog. Everything else on this page came out of the bundle instead, which is why the two lists don't match.

System prompt

The system prompt was not captured for this release, so this page cannot say whether it moved.

Documentation

What the docs did around this release

487 documentation changes were recorded within 24 hours either side of this release, nearest first. The closest 12 are below. They're here because they happened near this release in time. That's not a claim that this release caused the edit, or that the page documents anything in it.

Every time above is when this site's poller recorded the change, which is up to half an hour after the edit on an ordinary read and up to a day after it on a full sweep. Upstream's own edit time is used instead wherever a capture carries one. None of these do.

Feedback