{"version":"2.1.330","anchor":"headless-resume-of-opt-in-gated-sessions-now-explains-the-sd","canonical_anchor":"headless-resume-of-opt-in-gated-sessions-now-explains-the-sd","heading":"Headless resume refusals now explain how to opt in through --settings","tier":"notice","area":"Headless","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330\/e\/headless-resume-of-opt-in-gated-sessions-now-explains-the-sd","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330","markdown":"### Headless resume refusals now explain how to opt in through `--settings`\n\nWhen a headless or Agent SDK run can't resume a session because an opt-in is off, the message now says how to turn it on via --settings\n\n**What**\n\nA 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:\n\n- 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.\n\n- It no longer shows the interactive `--resume` step hints in headless mode, since there is no screen to follow them on.\n\nBefore, a headless refusal gave only a short message with no way forward.\n\n**Why**\n\nIf you use the Agent SDK, you now get a message you can act on instead of a dead end.\n\n- Area: Headless\n- Names: `--settings`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}