feat: add doctor command for diagnosing installs and cleaning stale daemon state (#1254)
* feat: add `doctor` command for install diagnostics and cleanup Adds `agent-browser doctor`, a one-shot diagnostic that checks environment, Chrome install, daemon state, config, encryption key, providers, network reachability, and a live headless launch test. Auto-cleans stale `.sock` / `.pid` / `.version` / `.stream` sidecar files on every run. Destructive repairs (reinstall Chrome, purge old state, close version-mismatched daemons, generate missing encryption key) are gated behind `--fix`. Supports `--offline`, `--quick`, and `--json`. * fixes
This commit is contained in:
@@ -388,8 +388,16 @@ agent-browser reload # Reload page
|
||||
agent-browser install # Download Chrome from Chrome for Testing (Google's official automation channel)
|
||||
agent-browser install --with-deps # Also install system deps (Linux)
|
||||
agent-browser upgrade # Upgrade agent-browser to the latest version
|
||||
agent-browser doctor # Diagnose the install and auto-clean stale daemon files
|
||||
agent-browser doctor --fix # Also run destructive repairs (reinstall Chrome, purge old state, ...)
|
||||
agent-browser doctor --offline --quick # Skip network probes and the live launch test
|
||||
```
|
||||
|
||||
`doctor` checks your environment, Chrome install, daemon state, config files,
|
||||
encryption key, providers, network reachability, and runs a live headless
|
||||
browser launch test. Stale socket/pid sidecar files are auto-cleaned. Output
|
||||
is also available as `--json` for agents.
|
||||
|
||||
### Skills
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user