{"version":"2.1.275","anchor":"askuserquestion-permission-requests-can-be-unwound-mid-fli","canonical_anchor":"askuserquestion-permission-requests-can-be-unwound-mid-fli","heading":"Pending questions and permission prompts are now force-rejected during session shutdown","tier":"notice","area":"Elsewhere","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.275\/e\/askuserquestion-permission-requests-can-be-unwound-mid-fli","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.275","markdown":"### Pending questions and permission prompts are now force-rejected during session shutdown\n\nClaude Code no longer hangs on a pending question or permission prompt when a session is shutting down\n\n**What**\n\n- When a session is being torn down, any pending human-facing request, such as an `AskUserQuestion` prompt or a permission prompt, is now forcibly rejected with the error \"the session is being torn down\", instead of hanging indefinitely or being silently dropped.\n\n- New internal state (`leftStanding`, `leaveQuestionsStanding()`, `questionsFrozen()`, `questionsLeftStanding()`) tracks this, and new dialog requests are cancelled immediately once a process is shutting down.\n\n- Replies meant for a process that is shutting down are now counted separately (`repliesLeftStanding`) from replies meant for the process taking over (`repliesLeftForNextProcess`).\n\n**Why**\n\nThis prevents a session from getting stuck waiting on a user response that will never arrive once shutdown has started, replacing an indefinite hang with a clear error.\n\n- Area: Elsewhere\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5"}