aboutsummaryrefslogtreecommitdiff
path: root/src/cdp/window-binding.ts
diff options
context:
space:
mode:
authoramankumarsingh77 <amankumarsingh7702@gmail.com>2026-07-06 23:15:08 +0530
committeramankumarsingh77 <amankumarsingh7702@gmail.com>2026-07-06 23:15:08 +0530
commit2ba584869909363705b9f1b7232cf2bd89ba9cff (patch)
tree7d29ac75c9c32e8cb0bfc62aff2cf844c2988654 /src/cdp/window-binding.ts
parent26daf87896d6645fe9be71460d2868755a4f939f (diff)
fix: stale socket detection prevents daemon spawn after crash
isDaemonRunning() only checked file existence of the Unix socket. A dead daemon leaves a stale socket, causing ensureDaemon() to skip spawning and client.start() to fail with 'Chrome not connected'. Replace with a liveness probe: connect, register, verify ack, then disconnect. On failure, clean up the stale socket. Also makes bridge handleRequest async to poll for Chrome connection for up to 15s before rejecting.
Diffstat (limited to 'src/cdp/window-binding.ts')
0 files changed, 0 insertions, 0 deletions