[GH-ISSUE #16] Windows: tool detection misses npm CLIs (codex/gemini) because which + spawn(shell:false) #5

Closed
opened 2026-03-04 01:39:10 +03:00 by kerem · 1 comment
Owner

Originally created by @ithallys on GitHub (Feb 25, 2026).
Original GitHub issue: https://github.com/yigitkonur/cli-continues/issues/16

Summary

On Windows (PowerShell), continues only detects claude and fails to detect other installed CLIs like codex and gemini.

Example picker message:

Only claude is installed. Install at least one more (...) to enable cross-tool handoff.

Environment

  • OS: Windows 11
  • Shell: PowerShell
  • Node: v24.11.1
  • npm: 11.6.2
  • continues: v3.0.2

Reproduction

  1. Ensure CLIs are installed and available in PATH:
    • claude (exe)
    • codex (npm shim)
    • gemini (npm shim)
  2. Run npx continues.
  3. Open the session picker.

Actual behavior

  • continues reports only claude as installed.
  • codex and gemini are not detected.

Expected behavior

  • continues should detect all available CLIs in PATH on Windows, including npm .cmd shims (codex.cmd, gemini.cmd).

Root cause

In src/utils/resume.ts:

  • Tool detection uses Unix-only which.
  • Command execution uses spawn(command, args, { shell: false }), which fails for npm shim commands on Windows.

Suggested fix

Use platform-specific detection and shell behavior:

Originally created by @ithallys on GitHub (Feb 25, 2026). Original GitHub issue: https://github.com/yigitkonur/cli-continues/issues/16 ## Summary On Windows (PowerShell), `continues` only detects `claude` and fails to detect other installed CLIs like `codex` and `gemini`. Example picker message: > Only claude is installed. Install at least one more (...) to enable cross-tool handoff. ## Environment - OS: Windows 11 - Shell: PowerShell - Node: v24.11.1 - npm: 11.6.2 - continues: v3.0.2 ## Reproduction 1. Ensure CLIs are installed and available in PATH: - `claude` (exe) - `codex` (npm shim) - `gemini` (npm shim) 2. Run `npx continues`. 3. Open the session picker. ## Actual behavior - `continues` reports only `claude` as installed. - `codex` and `gemini` are not detected. ## Expected behavior - `continues` should detect all available CLIs in PATH on Windows, including npm `.cmd` shims (`codex.cmd`, `gemini.cmd`). ## Root cause In `src/utils/resume.ts`: - Tool detection uses Unix-only `which`. - Command execution uses `spawn(command, args, { shell: false })`, which fails for npm shim commands on Windows. ## Suggested fix Use platform-specific detection and shell behavior:
kerem closed this issue 2026-03-04 01:39:10 +03:00
Author
Owner

@yigitkonur commented on GitHub (Feb 25, 2026):

thank you! v4.0 fixes this but i couldn't test it, any chance you could check it out? i'm the one who sold his soul to apple :/ can you test npx continues for me?

<!-- gh-comment-id:3960716602 --> @yigitkonur commented on GitHub (Feb 25, 2026): thank you! v4.0 fixes this but i couldn't test it, any chance you could check it out? i'm the one who sold his soul to apple :/ can you test `npx continues` for me?
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cli-continues#5
No description provided.