Skip to content

Commit f9ae7f2

Browse files
quanruCopilot
andauthored
Update packages/mcp/src/web-tools.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 54fd66a commit f9ae7f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/mcp/src/web-tools.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ export class WebMidsceneTools extends BaseMidsceneTools {
1717
if (this.agent && openNewTabWithUrl) {
1818
try {
1919
await this.agent.destroy();
20-
} catch (e) {}
20+
} catch (e) {
21+
console.debug('Failed to destroy agent during re-init:', e);
22+
}
2123
this.agent = undefined;
2224
}
2325

0 commit comments

Comments
 (0)