What
A headless session is Claude Code running without its interactive screen, usually driven by another program or the SDK. When such a session is resumed, earlier messages may not be loaded. This build changes how that is tracked and reported:
- The headless session passes a new
cutOffAtvalue into the session, loaded throughloadCutOffAt. The session-resume result now carriescutOffAt. - A new warning row, "Messages in this session from before ...", is shown once for each cut-off. It sits behind a gate (a switch read from the server) called
tengu_quirky_pine. Nothing has been read about what this gate returns. - The old fixed text, "Earlier messages in this session weren't loaded. Claude won't see them, so repeat anything it still needs.", is replaced by a generated message.
- The stream-json writer, which outputs each event as a line of JSON for another program, now writes an extra message before each output message.
Why
If you resume long headless sessions, you can be told which messages Claude can no longer see. If you have a program that reads stream-json output, expect extra messages in the stream.
tengu_quirky_pine 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.332: 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.332. It isn't a statement about your account. What a flag value here can and cannot tell you