You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[MCP]: browser_close caches a disposed backend with shared HTTP clients #42363
Using @playwright/[email protected] with HTTP transport and --shared-browser-context:
Clients A and B each call a browser tool.
A calls browser_close.
A calls browser_tabs { action: "new", url: "https://example.com" }.
A then fails until restart with:
TypeError: Cannot read properties of undefined
(reading 'checkUrlAndNavigate' / 'waitForInitialized')
browser_close disposes A's Context, but its cached backendPromise is cleared only on disconnected. Because B keeps the shared browser alive, no disconnect occurs and A reuses the disposed backend.
Expected: explicit close invalidates A's cached backend so the next call creates a fresh one.
This appears to be a 0.0.79 regression. Please clear backendPromise on explicit close and add a two-client regression test.
Activity
fix(mcp): drop the backend after browser_close with a shared browser (#…