{"version":"2.1.330","anchor":"full-disk-exit-now-also-covers-output-sent-to-a-file","canonical_anchor":"full-disk-exit-now-also-covers-output-sent-to-a-file","heading":"Print mode exits with an error when output to a file is lost on a full disk","tier":"notice","area":"Headless","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330\/e\/full-disk-exit-now-also-covers-output-sent-to-a-file","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330","markdown":"### Print mode exits with an error when output to a file is lost on a full disk\n\nWhen the disk is full, print mode now also reports output it could not write to a file and exits with code 1, even for stream-json\n\n**What**\n\nIn print mode, where Claude Code runs once without the interactive screen, it checks at the end whether a full disk stopped it saving things. It used to check only the session transcript and its own global config. Now:\n\n- Output sent to a file is checked too.\n\n- When that output was lost, the exit code is set to 1 (failure), including with the stream-json output format, which previously kept its exit code.\n\n- The error message lists everything that was lost in one readable sentence.\n\nThis is behind a remotely controlled setting.\n\n**Why**\n\nScripts that send Claude Code's output to a file on a full disk now get a failure code and a message instead of losing the output silently.\n\n- Flag `tengu_rosy_crab`: Not enough to say (read for one account on one subscription tier against v2.1.330; 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: Headless\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}