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.246 Home All releases olderv2.1.245 v2.1.247newer
Claude Code v2.1.246

Stale-session cleanup no longer confuses process ids from different containers

You'll notice
Useful2 Signal2
Sessions

Session cleanup now tracks which machine a process belongs to, so container ids stop colliding.

What

Each registered session now records which machine and process namespace its process id belongs to, and the sweep that clears out dead sessions skips any entry recorded elsewhere. Previously a process id from another container could match a live local process and be misread.

Details
  • On Linux and WSL the identifier is derived from /etc/machine-id plus /proc/self/ns/pid; other platforms use a fixed value.
  • Both the session key files and the pid files are checked this way.
  • Windows container environments skip the registry sweep entirely, detected by CONTAINER_SANDBOX_MOUNT_POINT being set or USERNAME being ContainerAdministrator or ContainerUser.
Evidence

pidDomain: await Yo(),

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.246 →