BaCheWork and records of a photonics research workhorse
Language

Claude Code 2.1.319 → 2.1.322 upgrade test: AI-written mods load before you review them

Reconciled on 2026-11-10: in auto and bypass modes, mods that Claude writes during a conversation load at the end of that turn, and tool calls a mod makes itself no longer raise permission prompts. The desktop app caught up this time, bundling 2.1.321.

Type
Note
Published
2026-11-11
Updated
2026-11-11
Status
Ongoing

Reconciliation date: 2026-11-10. The terminal Claude Code went from 2.1.319 to 2.1.322 (upstream did not publish 2.1.320; the skipped number is not a missed release). The desktop app went to 4.23118.1, and the Claude Code it bundles caught up to 2.1.321. So the 2.1.321 changes now take effect in both places; 2.1.322 has only one Vertex-related change, which I do not use.

What to check this time

  • Do you often run in auto or bypass permission mode? Mods the AI wrote now load before you have reviewed them.
  • Do you review mods written by others? Look especially for whether they make tool calls on their own.
  • Do you write deny rules? Before this version, when cp or mv wrote into a folder, the rules may not have caught it.
  • Do you depend on compaction-related hooks? After upgrading, re-measure them yourself.

1. Mods written by the AI load in auto and bypass without asking

What changed: mods Claude writes in a conversation now load at the end of the turn in auto and bypass modes, without asking; in dontAsk mode they do not load. Official wording: “Changed mods Claude writes to turn on without asking in auto and bypass modes” (2.1.321); the same sentence also says that organization-level sandbox settings do not block this behavior.

How I checked: this is a new mechanism, so I read the official mods documentation, including the sections on asking Claude to write a mod and on which sessions do not load mods Claude wrote, along with the precedence of rules, hooks, and mods in the permissions documentation. The documentation states that mods do not run in a sandbox. On a machine without organization-managed settings, and not signed in with a Team or Enterprise account (for example a personal computer), a mod can allow a call that your deny rules or PreToolUse hook would have blocked. Evidence: read in the official docs.

A reminder for you:

  • If you often use bypass on a personal computer, mods the AI wrote will run before you have looked at them, and they can allow calls that your hooks would have blocked.
  • If you have a habit of reviewing mods, the review has to happen before they load, not at the next session start. My own review used to run at the start of a session, and this change made it one step late. I am deciding whether to warn at the moment a mod is written.

2. Tool calls made by mods no longer raise permission prompts

What changed: tool calls a mod makes itself ($.tool.call, $.mcp.call) no longer raise permission prompts. Even your ask rules, dontAsk mode, and -p do not prompt for them; only deny rules and organization policy still apply.

How I checked: I could not find a matching explanation in the official documentation; only the changelog states it. I checked my own mods and none of them use these two calls. My mod review tool did not list these two calls explicitly, so I added them this time and confirmed with one positive and one negative example that it catches them (this part is my own test). Evidence: changelog only.

A reminder for you: when you review other people’s mods, look especially for $.tool.call and $.mcp.call. A mod that makes those calls can effectively run tools without your consent, and the only way to block them is a deny rule.

3. The desktop app caught up this time

What changed: the Claude Code bundled in desktop app 4.23118.1 jumped from 2.1.317 to 2.1.321. The 2.1.318 and 2.1.319 changes that the previous two posts marked as terminal-only now apply in the desktop app as well.

How I checked: inside a desktop-app session I read the environment variable for the host program’s version, and it was indeed 2.1.321. Evidence: tested live.

A reminder for you: the desktop app’s bundled version can skip several releases at once. For the items the previous two posts marked as terminal-only, go back and check again, because they now affect your desktop app too.

4. Compaction hooks: behavior unchanged after re-measuring

What changed: the changelog does not mention any change to compaction hooks.

How I checked: my hook notes say to rerun the compaction test after upgrading past the previous version, and that was triggered this time. So I reran it on the 2.1.321 bundled with the desktop app, and also ran the calibrated version with a positive control (the terminal’s 2.1.322 adds only one Vertex change, so I did not measure it separately). Results: a PreCompact hook that returns “block” still blocks both manual and automatic compaction; the form of the SessionStart hook’s output delivered after compaction is unchanged; and during automatic compaction, text printed by PreCompact is still read by the summary model. Evidence: tested live (with a positive control).

A reminder for you: if you depend on compaction hooks, re-measure their behavior yourself after upgrading. Changes the changelog does not mention (the previous two posts each ran into one) can only be seen by measuring, and a measurement is credible only with a positive control.

5. The deny-rule gap when cp or mv write into a folder is fixed

What changed: fixed a problem where, when cp or mv wrote into a folder, deny rules and protected-file prompts were not applied to the file actually written; forms such as /bin/cp are now checked in the same way. Also fixed read-only Bash commands running outside the sandbox without a prompt.

How I checked: I do not use a sandbox and have no deny rules, so I was not affected. Evidence: changelog only.

A reminder for you: if you have written deny rules, before this version those rules may not have blocked cp or mv in this case. If you are worried something slipped through earlier, go back and check the files that were copied or moved during that period.

Other things worth knowing

  • Background commands longer than 1,000 characters show only the head and tail of the command in completion notifications and stop results. Do not judge the full command from the notification.
  • Windows: Claude Code no longer looks for git through UNC paths or relative PATH entries (2.1.321). The desktop app also notes that if Git can only be found that way, the session switches to PowerShell instead of Git Bash (4.23118.1). If the desktop app’s commands suddenly become PowerShell one day, first check Git on your PATH.
  • Desktop app: when the sandbox is on, skills kept in .claude/skills inside a subfolder no longer load; open the session from that subfolder instead.
  • Fixed the git status given to Claude at the start of a session: when reading fails, it now says “unavailable” instead of showing “clean.”

Sources

  1. Anthropic. (n.d.). Claude Code changelog. GitHub. Retrieved November 10, 2026. (Official changelog (terminal build, 2.1.321–2.1.322))
  2. Anthropic. (n.d.). Claude desktop changelog. Retrieved November 10, 2026. (Official changelog (desktop app, 4.23118.1))
  3. Anthropic. (n.d.). Mods. Claude Code Docs. Retrieved November 10, 2026. (Official documentation (including the create subpage))
  4. Anthropic. (n.d.). Configure permissions. Claude Code Docs. Retrieved November 10, 2026. (Official documentation (precedence of rules, hooks, and mods))