VSCode extension: pending dialog silently lost when a scaffolded folder is opened in the same window

Status Open
Maintainer reply None cached
Activity 0 comments · opened Aug 7, 2026

Description

During a Claude Code task, a dialog (e.g. an AskUserQuestion prompt) can be waiting for a response while a scaffolding step creates a new project folder on disk. If the user then opens that folder via VSCode's "Open Folder" in the same window, VSCode reloads the window, tearing down the extension host — which silently destroys the pending dialog and any in-progress task state.

Steps to reproduce

  1. Start a Claude Code task in VSCode that scaffolds a new project into a folder.
  2. While a dialog (e.g. a question prompt) is open and awaiting a response, open the newly scaffolded folder via File > Open Folder in the same window.
  3. VSCode reloads the window; the original dialog and task state are gone with no warning.

Expected behavior

Some warning/confirmation before an in-progress Claude Code session (with a pending dialog) is discarded due to a window reload — or at minimum, guidance to open the folder in a new window instead.

Actual behavior

No warning is shown; the pending dialog and task state are lost silently.

View original on GitHub ↗