From d4378510aa05db7c0666dc809a7a660903c88217 Mon Sep 17 00:00:00 2001 From: Alex Rudenko Date: Wed, 17 Sep 2025 14:33:51 +0200 Subject: [PATCH] fix: refresh context based on the browser instance --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 6895cb052..0585f858f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -156,7 +156,7 @@ async function getContext(): Promise { channel: args.channel as Channel, isolated: args.isolated, }); - if (!context) { + if (context?.browser !== browser) { context = await McpContext.from(browser, logger); } return context;