Auto-update disable check reworked and can skip the package-manager check
The check for whether auto-updates are off was reworked and can now ignore the package-manager reason; DISABLE_UPDATES and DISABLE_AUTOUPDATER still apply
Under the hoodTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
Internal ChangesKind: in v2.1.331,
Internal ChangesSection of the release
Unclear It is not clear in which situations the extra reason is ignored.
What
Claude Code can update itself automatically. Environment variables, named settings your system passes to programs, can turn this off. This release changes the code that decides this:
DISABLE_AUTOUPDATER is now read through a new helper. The setting is used the same number of times as before, so this looks like a reorganisation rather than a change in behaviour.
CLAUDE_CODE_PROJECTS_SESSION is now read through another new helper, used as a way to override which session is used. This also looks like a reorganisation.
The check that decides whether updates are turned off gained a second option. When that option is set, an extra reason based on another environment variable linked to package-manager installs is ignored.
DISABLE_UPDATES and DISABLE_AUTOUPDATER still turn updates off in every case.
Why
If you installed Claude Code through a package manager, a tool that installs and updates software for you, automatic updates may now happen in cases where they used to be blocked. If you want to be sure updates stay off, set DISABLE_UPDATES or DISABLE_AUTOUPDATER.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Confirmed sinceAnthropic's documentation has since written up DISABLE_AUTOUPDATER, on MCP, plugins, skills, and hooks.To stop these updates without those effects, set `DISABLE_AUTOUPDATER` to `1` in the `env` block of [Claude Code's managed settings](https://code.claude.com/docs/en/settings#settings-files). Where a user also runs Claude Code in a terminal…third-party/claude-desktop/extensionssee the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not clear in which situations the extra reason is ignored.
Anthropic's documentation agreesAnthropic's documentation has since written up DISABLE_AUTOUPDATER, on MCP, plugins, skills, and hooks.