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
browser: drain in-flight DevTools relay calls before session teardown #454
The DevTools relay takes no agent permit for a forwarded tools/call, so session teardown does not wait for a relay call that is already running. Desktop input calls do get that wait. A call that passed the relay's session check just before teardown can therefore still be in flight, or still queued in the chrome-devtools-mcp child, when Chrome exits. If it connects after that, a local process that took the freed loopback port could answer it. SECURITY.md documents this window, and the threat model already gives local processes control over loopback CDP, but draining in-flight calls would close the ordinary case.
Hold an agent permit for each forwarded tools/call until its response, so teardown drains relay calls before it stops Chrome
Activity