Restricted sessions never write auto-memory, regardless of your settings.
What's wrong with this entry?
Restricted sessions no longer write auto-memory. The eligibility check bails out before it even looks at CLAUDE_CODE_DISABLE_AUTO_MEMORY.
- Triggered by the same option behind the
--restrictedargument that Claude Code passes to its own child sessions, along with theCLAUDE_CODE_RESTRICTED: "1"environment variable it forwards. - Defaults to false, so ordinary sessions are unaffected.
CLAUDE_CODE_DISABLE_AUTO_MEMORY
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
-
v2.1.232
disableAutoModesetting can switch off the auto permission mode fallbackBoth mention disable auto
-
v2.1.232
Subagents start with their memory already loaded
Both mention disable auto