{"version":"2.1.281","anchor":"the-session-teardown-leave-questions-standing-mode-is-remo","canonical_anchor":"the-session-teardown-leave-questions-standing-mode-is-remo","heading":"SDK permission handling drops the 'leave questions standing' mode","tier":"internal","area":"Sessions","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281\/e\/the-session-teardown-leave-questions-standing-mode-is-remo","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281","markdown":"### SDK permission handling drops the 'leave questions standing' mode\n\nThe leaveQuestionsStanding teardown mode for pending permission questions is gone, and host-answered prompts are now tracked when the host owns input\n\n**What**\n\nThe internal 'leave questions standing' mode, which rejected pending permission and question prompts with \"the session is being torn down\" when a session shut down, has been removed. This affects sessions driven through the SDK or stream-json, where another program hosts Claude Code and answers its prompts.\n\n- `leaveQuestionsStanding`, the `leftStanding` state, the `questionsLeftStanding` hook and the teardown rejection message are gone. `questionsFrozen()` no longer depends on it.\n\n- `handleElicitation` no longer returns cancel because questions were left standing; it cancels only when input is closed or the request was aborted.\n\n- Only the shutdown check now decides whether a `control_response` is left for the next process, and replies left standing are no longer counted.\n\n- When the host owns standard input, successful `can_use_tool` answers that were not forwarded are recorded in `hostDialogAnsweredRequestIds`. Settling a prompt clears that list.\n\n- When no prompt is left pending, the session state flips back from requires-action.\n\n**Why**\n\nThis changes what happens to pending permission prompts when an SDK or remote session is torn down mid-question: they are no longer rejected through a separate teardown mode. Hosts that relied on the teardown message should check how their pending prompts now settle.\n\n- Area: Sessions\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 1\/5"}