| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
All reported issues were addressed across 4 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Root cause
Cloud V4 starts a fresh bcode process for each user run while the AgentCore runtime and remote browser can remain alive. The fresh process has no in-memory WebSocket or target attachment, so a direct Page.navigate fails with Not connected even though the browser and page are alive. In staging session 12d6be06-d2f9-426a-9821-80a85e9cac8b, the first SAP navigation failed exactly this way and succeeded immediately after an explicit connect plus use.
The runtime now owns only the safe invariant: a fresh V4 process attaches its run-start browser once. Recovery remains deliberate because BU_CDP_WS does not change when an agent creates and switches to another browser during a run.
The deeper reconnect audit also found that explicit connect({ wsUrl }) replaced Session.ws without closing the prior socket or clearing activeSessionId. A command on the new socket could therefore carry a target session ID created by the old browser. Explicit replacement is now atomic from the Session perspective: pending old calls fail, the old socket is retired, stale messages are ignored, and target attachment is cleared.
Compatibility
Tests