{"version":"2.1.275","anchor":"session-teardown-leave-questions-standing-path-has-no-call","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":"Sessions","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.275\/e\/session-teardown-leave-questions-standing-path-has-no-call","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**Unclear.** No caller of `leaveQuestionsStanding()` itself was found, so it's unclear whether this path is yet triggered in practice.\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: Sessions\n- Names: `leaveQuestionsStanding`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Present in the build but not switched on"}