mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
987d9cba48
Doctor's job is browser-bridge health diagnosis. The `--no-live` flag let users skip the connectivity probe (= the core diagnostic), and `--sessions` listed automation sessions (a separate concern not part of health). Both flags accreted features that violated the command's first-principles purpose. Cleanup chain (removing dead code surfaced by the flag removal): - `--no-live` / `--sessions` flags removed from `opencli doctor` - `DoctorOptions.live` / `DoctorOptions.sessions` removed - `DoctorReport.sessions` removed - `[SKIP] Connectivity` render branch removed (always-live now) - `listSessions()` removed (only consumer was doctor) - `'sessions'` action removed from daemon-client protocol type - `BrowserSessionInfo` type removed (no remaining consumers) - extension `handleSessions` action handler removed (1.0.12) - extension test "reports sessions per session" removed - `OPENCLI_BROWSER_IDLE_TIMEOUT` test rewired to 'cookies' action Verification: - root typecheck + extension typecheck pass - doctor.test.ts 17/17 pass - extension/background.test.ts 49/49 pass - typed-error-lint 189/189 baseline - silent-column-drop 103/103 baseline - build + extension build green