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
[Bug] Chrome browser self-healing and health monitor in container #46
The Chrome/Chromium browser service inside the Docker container sometimes crashes or fails to start. There is no self-healing mechanism or health monitoring for the browser process.
Requirements
Health monitor — periodically check if the browser process is alive
Auto-restart — if the browser process dies, automatically restart it
Startup verification — on container start, verify browser launches successfully before accepting requests
Logging — log browser health events (start, crash, restart) for debugging
Graceful degradation — if browser cannot be restarted after N attempts, disable browser-dependent features and log a clear error
Implementation approach
Add a health monitor module (e.g. src/infra/browser-health.ts)
Integrate with the existing container startup sequence
Use process supervision (child_process or similar) to manage the browser lifecycle
Add configurable retry limits and intervals
Files to create/modify
src/infra/browser-health.ts (new) — browser health monitor
src/infra/index.ts — export the health module
Dockerfile — ensure Chromium is properly installed with self-healing entrypoint
Activity