Skip to content

fix(launcher): graceful degradation and manual CDP override for Windows#744

Merged
jackwener merged 2 commits intojackwener:mainfrom
deepziyu:fix/windows-electron-compat
Apr 3, 2026
Merged

fix(launcher): graceful degradation and manual CDP override for Windows#744
jackwener merged 2 commits intojackwener:mainfrom
deepziyu:fix/windows-electron-compat

Conversation

@deepziyu
Copy link
Copy Markdown
Contributor

@deepziyu deepziyu commented Apr 3, 2026

This PR fixes a bug on Windows where start up crashes due to Unix specific commands (pgrep, pkill, osascript). It prioritizes the \OPENCLI_CDP_ENDPOINT\ environment variable and adds platform guards.

Fail-fast with a clear error if the manual CDP endpoint is not reachable,
instead of passing a bad URL downstream and getting a confusing error.
@jackwener jackwener merged commit a5abd37 into jackwener:main Apr 3, 2026
just-buer pushed a commit to just-buer/opencli that referenced this pull request Apr 8, 2026
…ws (jackwener#744)

* fix(windows): graceful degradation and manual CDP override for Electron apps

* fix: validate OPENCLI_CDP_ENDPOINT with probeCDP before use

Fail-fast with a clear error if the manual CDP endpoint is not reachable,
instead of passing a bad URL downstream and getting a confusing error.

---------

Co-authored-by: jackwener <jakevingoo@gmail.com>
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.

2 participants