Skip to content

skills_install.py runs a bare claude argv, which may miss a Windows .cmd shim #1754

Closed

Description

@ptr727

scripts/skills_install.py finds the CLI with shutil.which("claude") and then runs it as a bare "claude" argv element, without shell=True. That happens in three places: register_claude_marketplace twice, and live_channel for --report.

On Windows, an npm install of the CLI puts a claude.cmd shim on PATH. shutil.which resolves that shim through PATHEXT, so claude_available() reads true. subprocess.run(["claude", ...]) goes to CreateProcess, and CreateProcess does not apply PATHEXT, so the call can raise OSError while the CLI is present and working.

What it would do

  • The install reports the marketplace registration as failed, or raises.
  • --report shows the live channel as registered: null with "gave no listing" while the plugin is in fact registered. The exit code is unaffected, since it is the snapshot's verdict alone.

Not verified

The local strict review on the #1739 change reasoned this out. Nobody has run it on native Windows, so it stays a candidate until it's measured there.

Likely fix

Run the path shutil.which returned rather than the bare name, in all three places, and confirm on native Windows that a .cmd path runs without shell=True.

Activity

  1. ptr727 commented on Sep 24, 2026

    @ptr727
    OwnerAuthor

    A related Windows gap, raised by the local review on #1755: the report's git and claude children now have a 60-second timeout. On Windows, subprocess.run kills only the direct child when that timeout fires, then calls communicate() again with no timeout. Git for Windows' cmd\\git.exe is a launcher, and the real git it starts can keep the pipe open, so a stalled git can still hang the report there. POSIX is not affected. Verifying it and fixing it (Popen with a bounded final collection, or killing the process tree) needs native Windows, like the rest of this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions