Bug: Notebook becomes stale and unresponsive — no stop/restart button available
Environment
- VS Code version: (fill in)
- dbcode extension version: (fill in)
- OS: RHEL 8 (Linux)
- Database type: DuckDB (in-memory via memoryDB connection)
Description
A .dbcnb notebook becomes stuck in a stale/unresponsive state where:
- No stop/restart button is available in the notebook toolbar
- Stop on cell does not work (clicking stop on an individual cell has no effect)
- Cells show previous outputs (mime type
x-application/dbcode) but cannot be re-executed
- The notebook kernel appears to be in a zombie state — neither running nor stopped
The only workaround is to close and reopen the notebook, or disconnect the connection via the dbcode sidebar/tools.
Steps to Reproduce
- Open a
.dbcnb notebook connected to a DuckDB (memoryDB) connection
- Execute cells that ATTACH external DuckDB files (e.g.,
ATTACH '...' AS db_name (READ_ONLY))
- After some time or after the connection becomes idle, the notebook enters the stale state
- Attempting to run any cell results in no response
- The stop/restart kernel button is missing from the toolbar
Expected Behavior
- The notebook should always show a stop/restart button when a kernel session is active
- If the connection is lost or the kernel becomes unresponsive, there should be a clear error message and the ability to restart the kernel
- Cells should not be stuck in a state where they cannot be stopped or re-executed
Actual Behavior
- Notebook is completely unresponsive
- No kernel controls (stop/restart) are visible
- Stop on individual cells does nothing
- The only recovery is closing the editor tab or using
dbcode-disconnect via command palette/tools
Additional Context
The notebook uses ATTACH statements to mount external .duckdb files as read-only databases. The stale state may be related to the external file locks or the connection timing out while DuckDB holds references to attached databases.
Bug: Notebook becomes stale and unresponsive — no stop/restart button available
Environment
Description
A
.dbcnbnotebook becomes stuck in a stale/unresponsive state where:x-application/dbcode) but cannot be re-executedThe only workaround is to close and reopen the notebook, or disconnect the connection via the dbcode sidebar/tools.
Steps to Reproduce
.dbcnbnotebook connected to a DuckDB (memoryDB) connectionATTACH '...' AS db_name (READ_ONLY))Expected Behavior
Actual Behavior
dbcode-disconnectvia command palette/toolsAdditional Context
The notebook uses
ATTACHstatements to mount external.duckdbfiles as read-only databases. The stale state may be related to the external file locks or the connection timing out while DuckDB holds references to attached databases.