From 68115b85ce19ae3ab21373820b3e0b5497d76fe7 Mon Sep 17 00:00:00 2001 From: Chris Tate Date: Sun, 11 Jan 2026 01:05:25 -0600 Subject: [PATCH] prevent relaunch --- src/browser.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/browser.ts b/src/browser.ts index fc803af..1429426 100644 --- a/src/browser.ts +++ b/src/browser.ts @@ -428,11 +428,12 @@ export class BrowserManager { /** * Launch the browser with the specified options + * If already launched, this is a no-op (browser stays open) */ async launch(options: LaunchCommand): Promise { - // Close existing browser if any + // If already launched, don't relaunch if (this.browser) { - await this.close(); + return; } // Select browser type