diff options
| author | amankumarsingh77 <amankumarsingh7702@gmail.com> | 2026-07-06 23:15:08 +0530 |
|---|---|---|
| committer | amankumarsingh77 <amankumarsingh7702@gmail.com> | 2026-07-06 23:15:08 +0530 |
| commit | 2ba584869909363705b9f1b7232cf2bd89ba9cff (patch) | |
| tree | 7d29ac75c9c32e8cb0bfc62aff2cf844c2988654 /package.json | |
| parent | 26daf87896d6645fe9be71460d2868755a4f939f (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 'package.json')
| -rw-r--r-- | package.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package.json b/package.json index ad081da..c82d38b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pi-browser-harness", - "version": "0.8.1", + "version": "0.8.2", "description": "Browser control extension for pi — navigate, click, type, screenshot, and extract data from real Chrome via CDP", "keywords": [ "pi-package", |
