Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.238 Home All releases olderv2.1.237 v2.1.239newer
Claude Code v2.1.238

Session state gathered into one container instead of scattered globals

Under the hood
Useful2 Signal3
Session State

Session state now lives in one per-session container, making sessions cleaner to tear down and restore.

What

State that used to live in loose module-level variables and React context is now held per session in a single object, covering things like whether the main loop is busy, terminal focus, feedback notices, project onboarding, push reachability, lost MCP authentication and changed skills. This makes tearing down and restoring a session coherent, and changes nothing you can see.

Details
  • Call sites read from the container instead of context, for example the main-loop-busy check.
  • Many bare module-level maps and sets were replaced with lazily created per-session holders.
  • Failures restoring a session are logged with "session rehydrator threw: ".
Evidence

session rehydrator threw:

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.

See this entry in the whole of v2.1.238 →