Follow Discord
Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.275 ·

Pending questions and permission prompts are now force-rejected during session shutdown

Claude Code no longer hangs on a pending question or permission prompt when a session is shutting down

TierNothing to try yethow much it should matter to you
Useful2my rating, 1 to 5
Signal2worth watching, 1 to 5
AreaSessionswhat it touches
KindIn Developmentin v2.1.275,
Group of 3 Nothing to try yet No documentation found

Claude Code no longer hangs on a pending question or permission prompt when a session is shutting down

What

  • 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.
  • New internal state (leftStanding, leaveQuestionsStanding(), questionsFrozen(), questionsLeftStanding()) tracks this, and new dialog requests are cancelled immediately once a process is shutting down.
  • Replies meant for a process that is shutting down are now counted separately (repliesLeftStanding) from replies meant for the process taking over (repliesLeftForNextProcess).

Why

This 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.

Read from
Names in the bundleleaveQuestionsStanding
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtNo caller of `leaveQuestionsStanding()` itself was found, so it's unclear whether this path is yet triggered in practice.

See this entry in the whole of v2.1.275 →

Feedback