fix: resolve stale session, ref resolution and cursor-ref collision bugs (#427)

This commit is contained in:
Chris Tate
2026-02-12 17:32:58 -06:00
committed by GitHub
parent b3b9fccd72
commit 221d22c14f
6 changed files with 277 additions and 5 deletions
+11
View File
@@ -329,6 +329,17 @@ export async function startDaemon(options?: {
}
}
// Recover from stale state: browser is launched but all pages were closed
if (
manager instanceof BrowserManager &&
manager.isLaunched() &&
!manager.hasPages() &&
parseResult.command.action !== 'launch' &&
parseResult.command.action !== 'close'
) {
await manager.ensurePage();
}
// Handle close command specially - shuts down daemon
if (parseResult.command.action === 'close') {
const response =