Skip to content

fix(cli): resume picker requires the cursor CLI, not just open#118

Open
akesling wants to merge 1 commit into
mainfrom
fix-cursor-resume-cli
Open

fix(cli): resume picker requires the cursor CLI, not just open#118
akesling wants to merge 1 commit into
mainfrom
fix-cursor-resume-cli

Conversation

@akesling

@akesling akesling commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

path resume's harness picker listed cursor whenever the macOS open
(or Linux xdg-open) binary was present — via the open -a Cursor fallback in
harness_available. Because open is always present on macOS, cursor appeared
in the picker even when Cursor wasn't installed.

This gates every harness purely on its own binary being on PATH:
harness_available becomes just binary_on_path(harness.name(), …).

Test

Replaces the macOS-only cursor_available_via_open_fallback_on_macos with
cursor_requires_its_cli_not_just_open, which asserts cursor is absent when
only open exists and present when the real cursor CLI is on PATH.

Context

Extracted from the GitHub Copilot provider PR (#117) as an independent fix — it
touches only path resume's picker and is unrelated to the Copilot work.


View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.

`path resume`'s harness picker listed cursor whenever the macOS `open` (or
Linux `xdg-open`) binary was present, via the `open -a Cursor` fallback in
`harness_available`. Since `open` is always present on macOS, cursor showed in
the picker even when Cursor wasn't installed.

Gate every harness purely on its own binary being on PATH:
`harness_available` is now just `binary_on_path(harness.name(), …)`.

The macOS-only `cursor_available_via_open_fallback_on_macos` test is replaced
by `cursor_requires_its_cli_not_just_open`, which asserts cursor is absent when
only `open` exists and present when the real `cursor` CLI is on PATH.
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

🔍 Preview deployed: https://3509fb03.toolpath.pages.dev

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