{"version":"2.1.319","anchor":"stream-json-disk-full-message-now-only-on-exit-status-0","canonical_anchor":"stream-json-disk-full-message-now-only-on-exit-status-0","heading":"The disk-full notice in stream-json output is only sent on a clean exit","tier":"notice","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.319\/e\/stream-json-disk-full-message-now-only-on-exit-status-0","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.319","markdown":"### The disk-full notice in stream-json output is only sent on a clean exit\n\nIn stream-json output, the disk-full message is now described as sent only when Claude Code exits with status 0; a run that exits 1 gets only a stderr line\n\n**What**\n\nWhen another program runs Claude Code with stream-json output (a stream of machine-readable messages), Claude Code can send a notice that the disk is full. The description of that message now says:\n\n- It is sent when Claude Code exits with status 0, meaning a normal finish.\n\n- A run that exits with status 1, such as after an error result, gets only a line on stderr (the error output) and not the message.\n\nThe description also notes that CLI 2.1.317 and some later releases sent the message on exit 1 too. Before, it said only that the message was sent at most once, as Claude Code exits, after the last result.\n\n**Why**\n\nIf your program reads this output, do not wait for the disk-full message after an error result. Check stderr for it instead.\n\n- Area: SDK\n- Names: `stream-json`\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}