Session registration now reports a hostSessionId read from the CLAUDE_CODE_HOST_SESSION_ID environment variable
Claude Code now reads a CLAUDE_CODE_HOST_SESSION_ID environment variable, subject to two other conditions, and includes its value as hostSessionId in the payload sent when registering a session. One other place that reads this value is itself controlled by a separate flag.
This lets Claude Code identify and report the host session a given session belongs to, which is useful in setups where sessions run under a managing host process.
tengu_tidy_fern Not enough to sayNothing here resolved what this flag was doing on this version, so nothing here should be read as on or off.
This account: no value returned · anonymous baseline: no value returned · compiled default in v2.1.274: on
These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.
Read once, for one account on one subscription tier, against v2.1.274. It isn't a statement about your account. What a flag value here can and cannot tell you
New in this build: CLAUDE_CODE_HOST_SESSION_ID