{"version":"2.1.282","anchor":"new-env-var-claude-code-parked-run-before-clear-parked-perm","canonical_anchor":"new-env-var-claude-code-parked-run-before-clear-parked-perm","heading":"Approved parked tool calls now wait until their record is cleared","tier":"internal","area":"SDK","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.282\/e\/new-env-var-claude-code-parked-run-before-clear-parked-perm","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.282","markdown":"### Approved parked tool calls now wait until their record is cleared\n\nIn headless mode an approved parked tool call now runs only after its saved record is confirmed deleted; an env var skips the wait\n\n**Unclear.** It is not confirmed that earlier builds ran approved parked calls without waiting.\n\n**What**\n\nIn headless or print mode, where Claude Code runs without an interactive screen, a tool call (an action Claude asks to take, like running a command) that is waiting for permission can be parked with a saved record.\n\nOnce such a call is approved, Claude Code now waits until deleting its saved record is confirmed before running it. If the delete is not confirmed, the call is not run and a warning is logged.\n\nSetting the environment variable `CLAUDE_CODE_PARKED_RUN_BEFORE_CLEAR` skips the wait, so the call runs before its record is cleared.\n\n**Why**\n\nIf a record could not be cleared, the same call could later be picked up and run a second time. Waiting for confirmation prevents that, and the environment variable is a way back if the wait causes trouble.\n\n- Area: SDK\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5"}