{"version":"2.1.330","anchor":"headless-teardown-flushes-held-repl-results","canonical_anchor":"headless-teardown-flushes-held-repl-results","heading":"Headless sessions write out pending results before they exit","tier":"notice","area":"Headless","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330\/e\/headless-teardown-flushes-held-repl-results","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330","markdown":"### Headless sessions write out pending results before they exit\n\nBefore shutting down, headless sessions now spend up to 5 seconds writing out results that are still being held\n\n**What**\n\nA headless session is one that runs without the interactive screen, for example from a script. When such a session shuts down, Claude Code now first writes out any results it is still holding. It waits up to 5 seconds for this before exiting.\n\n**Why**\n\nResults that were still being written when the session ended could previously be lost. Waiting briefly at shutdown keeps them.\n\n- Area: Headless\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}