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.242 Home All releases olderv2.1.241 v2.1.243newer
Claude Code v2.1.242

A pre-shutdown callback slot exists but nothing fills it

Not switched on
Useful1 Signal3
Session Lifecycle

A pre-exit callback slot exists, but nothing in the build ever fills it.

The shutdown hook slot is called on exit but its register and clear wrappers have no callers.

What

The interactive session host gained a way to register a callback that runs just before Claude Code exits, and the exit path does call it. But the register and clear operations are only reachable through two module-level wrappers that nothing in the build calls, so the slot is always empty and the new step does nothing.

Details
  • The run step is wired into the normal interactive exit sequence, followed by a short wait.
  • Infrastructure landed ahead of whatever will register into it.
Evidence

registerBeforeInteractiveShutdown

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.242 →