{"version":"2.1.337","anchor":"headless-runs-now-fail-when-auto-mode-left-actions-unchecked","canonical_anchor":"headless-runs-now-fail-when-auto-mode-left-actions-unchecked","heading":"Headless runs report an error when auto mode could not check some actions","tier":"notice","area":"Auto Mode","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/headless-runs-now-fail-when-auto-mode-left-actions-unchecked","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### Headless runs report an error when auto mode could not check some actions\n\nIn print mode, a run where auto mode couldn't check some actions now ends as an error naming the tools, unless turned off with an env var\n\n**Unclear.** It is not clear whether this error also changes the process exit code that scripts check.\n\n**What**\n\nAuto mode is a permission mode where a safety check decides whether Claude's actions may run. Sometimes the check gives no answer, and those actions are refused.\n\n- Permission denials now carry `auto_mode_unchecked`, set to 'no_check_in_session' or 'no_verdict'. The result description says the final assistant text can still be returned when `permission_denials` lists such actions.\n\n- In print mode (`claude -p`, used in scripts), a run that otherwise succeeded, or ended in `error_during_execution` with `stopped_by_permission_check`, is now marked `is_error: true`. An error is added: 'Auto mode could not check some actions Claude tried, so they did not run: \u2026', naming the tools, ending with `[auto_mode_unchecked]`, and suggesting another permission mode.\n\n- Outside stream-json output the error is also written to the error output, and the exit reason is `auto_mode_unchecked_refusals`. Before, there was only an error-output message and exit code 1, behind a gate named `tengu_truthful_wren`, with no error on the result.\n\n- The rewrite is skipped when `CLAUDE_CODE_DISABLE_UNCHECKED_ACTIONS_ERROR` or `CLAUDE_CODE_EVAL_CONFINED` is set, and for stream-json output when an sdkUrl is set or a few other conditions hold.\n\n- When the check gives no answer and the action was approved over Remote Control, it is now denied. The message says to approve on the computer with Remote Control off, or switch permission mode.\n\n- A tracker marks these no-answer denials and clears the mark if the same tool call is retried and allowed. It sits behind a gate named `tengu_noble_turtle` whose compiled-in fallback is true; nothing has been read about it.\n\n**Why**\n\nScripts and CI jobs running `claude -p` in auto mode can now see an error result where a run used to look successful. Set `CLAUDE_CODE_DISABLE_UNCHECKED_ACTIONS_ERROR` to keep the old behaviour.\n\n- Area: Auto Mode\n- Names: `claude -p`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: yes"}