{"version":"2.1.321","anchor":"headless-p-error-exit-carries-a-reason","canonical_anchor":"headless-p-error-exit-carries-a-reason","heading":"Non-interactive runs that end without a result now record why","tier":"internal","area":"Headless Mode","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.321\/e\/headless-p-error-exit-carries-a-reason","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.321","markdown":"### Non-interactive runs that end without a result now record why\n\nWhen a `claude -p` run exits with an error because it got no result, Claude Code now records a category and reason for the exit\n\n**What**\n\nWhen you run Claude Code non-interactively with `-p` and it ends with an error because no result came back, Claude Code now records a category and a reason for that exit.\n\n**Why**\n\nThis is a record of why the run ended, kept for diagnostics.\n\n- Area: Headless Mode\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}