Follow Discord
Reading a new release v2.1.331 Publishing · 5/6 947 findings $21.22 so far

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. Loop/watch stop messages reworded; plan-mode and typed-stop reasons added

    New watch-ended reasons: plan_mode ("this session is in plan mode, where nothing may change...") and typed_stop ("you asked. Run AGAIN to start again."). Several other messages were reworded.

  2. Many host control requests now return an 'unavailable_on_connection' code

    get_status, export_conversation, the cloud-session requests, dictate, get_memory_dialog, get_skills_dialog, get_chrome_dialog, get_chrome_browsers and get_sandbox_dialog now pass the machine-readable code "unavailable_on_connection" with their "is not available on this connection" errors.

  3. Always-deliver message wording tightened

    The message now says "any program running as you on this computer" in place of "your sessions on this computer".

  4. Orphaned tool_use blocks without a string name are repaired

    The transcript sanitizer now also gives a placeholder name to tool_use blocks that have no string name. It logs this and reports telemetry reason tool_name_missing. Before, only overlong names were cut.

  5. Disabled-skill message for bundled skills and org-set overrides changed

    When a skill is disabled via skillOverrides, the non-interactive message now ends with a note that only an admin can remove an override the organization set. Interactive mode shows that same text for bundled skills instead of the 're-enable it in /skills' hint.

  6. Model catalog URL and public key settings added to managed settings schema Gated

    Settings schema now defines modelCatalogUrl and modelCatalogPublicKey (marked @internal), previously a placeholder. The URL is only honored from managed settings. It can also be set with CLAUDE_CODE_MODEL_CATALOG_URL, and CLAUDE_CODE_MODEL_CATALOG=off disables reading locally. A self-hosted catalog is verified against modelCatalogPublicKey.

  7. New managed setting downloadsMirrorUrl for FedStart installs Gated

    A new settings key lets managed policy point native installs and updates at an Anthropic-run mirror. Only one value is accepted. It also keeps auto-updates on even when CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC is set.

  8. Deny-rule message and worktree-session guidance reworded

    The deny-rule message for git/gh changed wording. The worktree warning now adds that closing a VS Code tab ends the session, and that quitting the app can end an unrecognized session.

  9. Sensitive-path pattern covers more CI config

    The protected-path regex now also matches .vsts-ci, .builds, .codecatalyst, buildspec*.yml, appspec.yml/json, .build.yml and .vsts-ci.yml.

  10. claude auth logout --json (hidden); revoke_unconfirmed shared output

    auth logout gains a hidden --json option that writes the result as one JSON line with message and revokeUrl.

  11. MCP Anthropic-hosted connector message now says `claude auth login`

    The error shown when a user tries local OAuth on an Anthropic-hosted connector now tells them to run `claude auth login` instead of `claude login`.

  12. Skill wildcard names ending in `__*` are rejected

    Skill-name validation now also rejects names ending in `__*`. Before, only `:*` and ` *` were rejected. The error is 'wildcard-suffix names are not allowed; list each skill by its exact name.'

  13. macOS keychain login-save failure message

    A new error message tells users whose keychain entries cannot be read to unlock the keychain, or to run /logout or claude auth logout.

  14. OTel chat spans get gen_ai.operation.name

    LLM request telemetry attributes now include gen_ai.operation.name set to "chat".

  15. File upload validation message changed: localPath now required

    The validation error now says each file needs "localPath" and cannot also have "data". Before, it required exactly one of data or localPath.

  16. Windows desktop download URL now points to setup installer

    The claude.ai desktop redirect for win32 changed from exe to setup.

  17. Credential guard label renamed

    The label for the hostCredential policy source changed from 'cloud-session credential guard' to 'built-in credential guard'. Users see this wording where a denial or policy source is named.

  18. Scheduled-task saves refuse if the project folder changed mid-save

    Saving durable scheduled tasks now takes the expected project folder. If the current project differs, it throws with the message below and writes nothing. The add, delete, and update-last-fired paths all capture the folder first.

  19. Diff rows gain uncommittedStatus

    The diff answer schema has a new optional `uncommittedStatus` field. It says how a file differs from HEAD even when the row is compared against the merge-base.

  20. New startup refusal reason sideload_flags_disabled Gated

    The startup-refusal enum gains sideload_flags_disabled. It applies when managed settings set disableSideloadFlags and the launch names plugins, agents or MCP servers of its own. A start without them is not refused.

  21. Slash-command scan short-circuits when there is no slash

    The function that scans text for slash commands now returns an empty list immediately when the text has no `/`. Before, it always ran the regex.

  22. Tilde paths in extraKnownMarketplaces rejected

    Marketplace reconcile now refuses a source whose path starts with '~', other than '~/'. The error tells the user to write the full path or prefix './'.

  23. Skill tool result reports fromMcpServer

    The Skill tool's success data now includes fromMcpServer: true when the skill was loaded from an MCP server.

  24. Artifact publish tool descriptions discourage inline data

    The localPath description now says to use the same path as `path`. The data field now says 'Do not use', and encoding says 'Do not use: localPath files are encoded automatically'.

  25. Clearer error text for oversized tool input

    The too_large message now reads "the details sent with its input are larger, or more deeply nested, than ${t} accepts".

  26. Hook usage-credits error now names CLAUDE_CODE_NO_MODEL_FALLBACK only when relevant Gated

    The error for a hook that needs usage credits now mentions CLAUDE_CODE_NO_MODEL_FALLBACK only when it is set and the hook is relevant. In that case it suggests unsetting the variable.

  27. macOS pkill wrapper refuses to kill Claude for Mac Gated

    A shell function injected for macOS, behind tengu_snappy_parasol, skips PIDs belonging to the Claude desktop app. It prints "pkill: skipped PID %s to keep Claude for Mac running."

  28. Sandbox glob warning now covers WSL and denyWrite

    The warning is no longer Linux-only. It now says "Glob patterns in sandbox settings are not fully supported on Linux and WSL" and mentions sandbox.filesystem.denyWrite.

  29. gh pr review example now reads body from a file

    The built-in 'pr review' command hint changed from an inline body to a file-based body.

  30. Sandbox settings change refused when local settings are not read

    Editing sandbox settings is now refused with code local_settings_off when the session doesn't read the folder's settings, for example an untrusted folder. The get_sandbox_dialog request also gains an optional `lists` field.

  31. Login refuses restart while background work runs, with clearer wording

    whyNoNewProcess now returns structured text. When background work is running, it says 'that would stop the work running in the background'. The advice is to finish or stop it in /tasks, then run /login again.

  32. MCP skills: keep previous skills when skills/list fails transiently

    On 5xx errors, timeouts or terminal connection errors, the previous skill list is kept. A debug line logs 'skills/list failed; keeping previous skills'. The SKILL.md cache moved to a storage layer.

  33. Read tool refuses saved claude.ai chat files for remote calls and Desktop helper run folders

    Read now refuses files in Desktop's helper run folder. For remote calls it also refuses files saved from claude.ai chats, with a message to use a session on the machine where the file is.

  34. Plugin validation warns about links into .git

    Plugin and marketplace validation now warns about a local plugin source inside .git. It also warns about symlinks that point into the repository's .git folder.

  35. SharePoint file reference text adds size note

    The prompt text now says a file sent by reference can be up to 10 MB (about 3 MB in some cloud sessions).

  36. WebFetch refuses Claude artifact invitation links

    WebFetch input validation now refuses invitation links to Claude artifacts. It returns a message that Claude cannot accept an invitation and asks the user to open the link themselves.

  37. PR-babysit prompt: uncommitted fixes block 'Ready'

    The PR-review prompt now says the PR is not ready while a fix is left uncommitted beside the user's own changes. In that case it tells the user, and only the user, the `git push` command to run. The ready wording changed from 'Merging is yours' to 'Merging is up to you'. Review comments should list only findings that hold of the reviewed head.

  38. Hook cwd warning also covers directories that cannot be entered

    The hook fallback warning now says the working directory no longer exists or cannot be entered.

  39. Archive of remote sessions retries on 409

    archiveRemoteSession now retries on a 409 with backoff inside a time limit. Before, 409 counted as success. Now only 200 counts as archived.

  40. TaskUpdate returns an error when interrupted

    If the abort signal has fired, a task status update now returns success false with the message below. The task is left unchanged.

  41. Wording for bypass and mode warnings

    The text for non-bypass sessions changed from "some modes accept edits without asking" to "some modes edit files or run commands without asking".

  42. Remote session client handles trusted-device check outage and stream backpressure

    If the server reports reason device_check_unavailable, the client now reconnects instead of failing permanently. Frame handling can also await callbacks.holdsStream.

  43. PDF read note handles single-page PDFs

    The text returned after reading a PDF now says "its one page" for a one-page PDF instead of "all 1 pages".

  44. Directory-gone message distinguishes a replaced directory

    When the original cwd is gone, the message now says it 'now leads to a different directory (a link may have been put there)' where the old text said it 'no longer exists'. It also suggests restarting from 'the project's' directory.

  45. Compiled-in default for `tengu_binary_music` flipped: "" -> "userSettings"

    The default literal compiled into the bundle changed from `""` to `"userSettings"` between v2.1.330 and v2.1.331. No sweep finding explains it. This is the compiled-in fallback only; whether the flag is on for any account is controlled server-side and is not known here.

  46. Compiled-in default for `tengu_concurrent_candle` flipped: 1 -> false

    The default literal compiled into the bundle changed from `1` to `!1` between v2.1.330 and v2.1.331. No sweep finding explains it. This is the compiled-in fallback only; whether the flag is on for any account is controlled server-side and is not known here.

  47. Compiled-in default for `tengu_kind_bumblebee` flipped: 7168 -> "number"

    The default literal compiled into the bundle changed from `7168` to `"number"` between v2.1.330 and v2.1.331. No sweep finding explains it. This is the compiled-in fallback only; whether the flag is on for any account is controlled server-side and is not known here.

  48. Rewind restore handles deleted-file backups more carefully and reports held paths

    Rewind now sorts files whose backup is null (the file did not exist at that point) to the end of the restore order. If a restore failed earlier in the run, those files are kept rather than deleted. The result gains a heldPaths list. A missing backup copy where the file is also gone is now logged and counted as a failure. Backup version numbers are now computed by a shared helper.

  49. Skill tool result distinguishes skills launched from an MCP server

    The Skill tool's tool_result now says 'Launching skill from an MCP server: <name>' when the result has fromMcpServer set. Before, every skill got 'Launching skill: <name>'.

  50. REPL truncation notice reworded

    The notice shown when a value is truncated no longer says the whole value is in the REPL under a key. It now says to slice or search a variable if one holds the whole value. The old code also showed r.length, which now reads n.length.

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

486 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