You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
HeadlessArea: what it touches
ImprovementsKind: in v2.1.330,
ImprovementsSection of the release
What
A headless run is one with no interactive screen, such as a script or an app built with the Agent SDK. Some sessions need an opt-in before they can be resumed. When that opt-in is off, Claude Code refuses to resume, and the refusal has changed:
It now tells you to set the named environment variable to 1 in the env block of --settings, which is the Agent SDK's settings option.
It no longer shows the interactive --resume step hints in headless mode, since there is no screen to follow them on.
Before, a headless refusal gave only a short message with no way forward.
Why
If you use the Agent SDK, you now get a message you can act on instead of a dead end.
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeFixed --continue and --resume opening an empty session or failing when the last saved message had a missing or invalid timestamp