Programs connecting over stream-json now learn whether the session is idle, running or waiting on you.
What's wrong with this entry?
When a program connects to Claude Code over the stream-json control protocol, the reply now includes session_state (idle, running or requires_action at the moment of connection) and hooks_applied. A client attaching to a CLI that is mid-turn can see that immediately instead of guessing.
hooks_appliedis false when a repeated initialize's hooks were ignored because another client owns the CLI's stdin.- Both fields are present on this build; if they are missing from a reply, the CLI on the other end is older.
a client joining a remote session another client configured
Strings lifted out of the shipped bundle, so the claim above can be checked against them.