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

Session state reports idle instead of running when the main loop is not working

You'll notice
Useful3 Signal2
SDK

Session state now reports idle rather than running when the main loop isn't actually working.

What

After the last pending permission or dialog request clears, the session used to always report running to anything watching session state, including SDK and remote clients. It now asks an optional liveness callback first and reports idle when the main loop says it is not live.

Details
  • The callback is optional; when it is absent, behaviour is exactly as before.
  • Affects consumers subscribed to session state change notifications, which previously saw a spurious busy state after a prompt was answered.
Evidence

mainLoopLiveness

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 →