Conversation
…loses openclaw#104) Playwright's connectOverCDP() attaches to ALL open pages during initialization. If any page's renderer is stuck (e.g. TradingView with heavy JS), the entire connection hangs indefinitely. Add a pre-connection health check that probes each page via raw CDP Runtime.evaluate("1") and closes unresponsive pages before connectOverCDP() runs.
Milofax
added a commit
that referenced
this pull request
Feb 18, 2026
After a gateway restart, Chrome's SingletonLock/SingletonSocket/SingletonCookie files persist on the Docker volume while their /tmp targets are gone. This causes Chrome to hang or timeout on subsequent launches. Remove these files in launchOpenClawChrome() before spawning, which is safe because ensurePortAvailable() already confirmed no Chrome is running on that port. Closes openclaw#55 Co-authored-by: Claude Opus 4.5 <[email protected]>
Milofax
added a commit
that referenced
this pull request
Feb 18, 2026
…loses openclaw#104) (#1) Playwright's connectOverCDP() attaches to ALL open pages during initialization. If any page's renderer is stuck (e.g. TradingView with heavy JS), the entire connection hangs indefinitely. Add a pre-connection health check that probes each page via raw CDP Runtime.evaluate("1") and closes unresponsive pages before connectOverCDP() runs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Runtime.evaluate("1")and closes pages whose renderer doesn't respond within 3sconnectOverCDP()from hanging indefinitely when a tab with heavy JS (e.g. TradingView charting) is open.catch(() => {}), falls back to existing retry logic if eviction failsCloses Milofax/marakanda-infrastructure#104
Root cause
Playwright's
connectOverCDP()attaches to ALL open pages during initialization. If any page's renderer is stuck, the entire connection hangs. Confirmed by closing the stuck tab via raw CDP — Playwright then connected in 63ms.Test plan
npm run buildpasses (verified locally)snapshot— should succeed instead of timing outtabs,open,statuscommands still work as before🤖 Generated with Claude Code