{"version":"2.1.328","anchor":"deferred-tool-resume-can-be-disabled-by-env-var","canonical_anchor":"deferred-tool-resume-can-be-disabled-by-env-var","heading":"New environment variable turns off deferred tool resume in print mode","tier":"use","area":"Print Mode","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328\/e\/deferred-tool-resume-can-be-disabled-by-env-var","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328","markdown":"### New environment variable turns off deferred tool resume in print mode\n\nSetting `CLAUDE_CODE_DISABLE_DEFERRED_TOOL_RESUME` turns off resuming a paused tool call when continuing a `--print` session\n\n**What**\n\n`--print` runs Claude Code without its interactive screen, for scripts and automation. When you resume or continue such a session with no new input, Claude Code can pick up a tool call that was paused (deferred) earlier, and if it finds none it says \"No deferred tool marker found\".\n\nA new environment variable, `CLAUDE_CODE_DISABLE_DEFERRED_TOOL_RESUME`, changes this. With it set, Claude Code skips that path and gives the ordinary \"Input must be provided\" error instead. The variable is read in several other places too.\n\n**Why**\n\nIt gives a way to switch off resuming paused tool calls in non-interactive runs, for example if that behaviour gets in the way of a script.\n\n- Area: Print Mode\n- Names: `--print`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}