CLAUDE_CODE_RETIRE_UNANSWERED_PARKED_PERMISSION
Updated by Alex Sorokoletov
CLAUDE_CODE_RETIRE_UNANSWERED_PARKED_PERMISSION is a Claude Code environment variable: Set to retire the interrupted turn's pending tool calls when a parked permission prompt timed out unanswered. Read until v2.1.269. Removed between v2.1.269 and v2.1.283, so current releases ignore it. It is not in the official reference.
| Status | Removed between v2.1.269 and v2.1.283 |
|---|---|
| Added | Added between v2.1.229 and v2.1.234 |
| Category | Permissions and sandbox |
| Official docs | Not listed |
How to set it
For one session, export it in the shell that starts Claude Code:
export CLAUDE_CODE_RETIRE_UNANSWERED_PARKED_PERMISSION=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"CLAUDE_CODE_RETIRE_UNANSWERED_PARKED_PERMISSION": "<value>"
}
}Related variables
CLAUDE_CODE_HOLD_UNANSWERED_PARKED_PERMISSION: Held an unanswered parked permission request open instead of retiring it, keeping the turn waiting on it; read until v2.1.269.CLAUDE_CODE_ADOPT_UNDERIVABLE_PARKED_PERMISSION: In print/SDK mode, when a host reconnects and a permission prompt was left parked with no persisted answer that can be rederived, adopt that prompt and retire the interrupted turn's tool-use IDs instead of re-running the tool call.CLAUDE_CODE_PARKED_PERMISSION_WAIT_MS: Sets how long in milliseconds to wait for a parked permission prompt's answer; defaults to 2000.CLAUDE_BG_SESSION_PERMISSION_RULES: In a background session, supplies JSON permission rules with allow and deny arrays and optional addDirs; ignored when absent or malformed.CLAUDE_CHROME_PERMISSION_MODE: Permission mode for Claude for Chrome.CLAUDE_CODE_DISABLE_PERMISSION_PROMPT_NOTIFY_HOOKSCLAUDE_CODE_RC_PERMISSION_NUDGE: Overrides the permission-nudge settings as JSON: how many prompts before it may appear (default 5, minimum 1), the probability it shows (default 0, off), and the maximum times it is shown (default 3).CLAUDE_CODE_AUTO_MODE_CANDIDATE_WORDING: Chose the auto-mode classifier wording; a truthy value requested the 'candidate' variant and a falsy one the 'baseline'.
Frequently asked questions
What does CLAUDE_CODE_RETIRE_UNANSWERED_PARKED_PERMISSION do?
Set to retire the interrupted turn's pending tool calls when a parked permission prompt timed out unanswered. Read until v2.1.269.
Which Claude Code version has CLAUDE_CODE_RETIRE_UNANSWERED_PARKED_PERMISSION?
Removed between v2.1.269 and v2.1.283, so current releases ignore it.
How do I set CLAUDE_CODE_RETIRE_UNANSWERED_PARKED_PERMISSION?
Export it before starting Claude Code (export CLAUDE_CODE_RETIRE_UNANSWERED_PARKED_PERMISSION=value), or add it to the "env" object in ~/.claude/settings.json to apply it to every session.
All variables, searchable: Claude Code environment variables.