{"version":"2.1.332","anchor":"headless-sessions-get-a-cut-off-notice-for-messages-before","canonical_anchor":"headless-sessions-get-a-cut-off-notice-for-messages-before","heading":"Headless sessions track a cut-off point and warn about messages before it","tier":"notice","area":"Elsewhere","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332\/e\/headless-sessions-get-a-cut-off-notice-for-messages-before","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332","markdown":"### Headless sessions track a cut-off point and warn about messages before it\n\nHeadless sessions now pass cutOffAt on resume and can emit a generated warning about messages from before the cut-off\n\n**What**\n\nA 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:\n\n- The headless session passes a new `cutOffAt` value into the session, loaded through `loadCutOffAt`. The session-resume result now carries `cutOffAt`.\n\n- 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.\n\n- 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.\n\n- 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.\n\n**Why**\n\nIf 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.\n\n- Flag `tengu_quirky_pine`: Not enough to say (read for one account on one subscription tier against v2.1.332; this account: no value returned, anonymous baseline: no value returned, compiled default: 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.\n- Area: Elsewhere\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}