Skip to content

fix(doctor): remove unused fix option and add release URL to extension install hint#498

Merged
jackwener merged 4 commits intomainfrom
claude/cranky-panini
Mar 27, 2026
Merged

fix(doctor): remove unused fix option and add release URL to extension install hint#498
jackwener merged 4 commits intomainfrom
claude/cranky-panini

Conversation

@jackwener
Copy link
Owner

Summary

  • Remove unused fix?: boolean from DoctorOptions type (the --fix flag was never registered in CLI)
  • Update extension install hint to include the actual releases URL instead of generic "GitHub Releases"
  • Fix doc comment to say "diagnose" instead of "diagnose and fix"

Test plan

  • Run opencli doctor when extension is not connected — verify hint now shows full URL
  • TypeScript build passes with no errors

- Fail-fast guard in execution.ts: when daemon is running but extension
  is not connected, immediately surface a setup guide instead of waiting
  for the 30s connect timeout

- Extension version handshake: extension sends `hello` with its version
  on WebSocket connect; daemon stores it and exposes via /status; CLI
  warns on mismatch in both execution path and `opencli doctor`

- `opencli doctor` now shows extension version inline and reports
  version mismatch as an actionable issue

- Non-blocking npm update checker: registers a process exit hook so the
  update notice appears after command output (same pattern as npm/gh/yarn);
  background fetch writes to ~/.opencli/update-check.json for next run

- postinstall: print Browser Bridge setup instructions after shell
  completion install for first-time global install users

Bug fixes caught in review:
- discover.ts: add AbortController timeout to checkDaemonStatus() fetch,
  move clearTimeout after res.json() to cover body streaming
- daemon.ts: clear extensionVersion and reject pending requests in
  ws.on('error') handler, not just ws.on('close')
- update-check.ts: skip update notice when process exits with non-zero
  code; read cache once at module load to avoid double disk I/O;
  guard isNewer() against NaN from pre-release version strings
@jackwener jackwener merged commit f9f018d into main Mar 27, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant