Skip to content

Commit 93f4579

Browse files
authored
fix: refresh context based on the browser instance (#44)
1 parent 21e175b commit 93f4579

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ async function getContext(): Promise<McpContext> {
156156
channel: args.channel as Channel,
157157
isolated: args.isolated,
158158
});
159-
if (!context) {
159+
if (context?.browser !== browser) {
160160
context = await McpContext.from(browser, logger);
161161
}
162162
return context;

0 commit comments

Comments
 (0)