Skip to content

Doctor calls execFileSync(binary, args) for the detected .cmd shim. Node cannot launch .cmd files directly with execFileSync on Windows; it needs cmd.exe /c or exec(). #255

Description

@Angle-AOB

Windows, OpenCode installed via npm install -g opencode-ai@latest.

opencode --version returns 1.18.7, but npx @cortexkit/magic-context@latest doctor reports:
"OpenCode CLI was found at ...\AppData\Roaming\npm\opencode.cmd but could not be executed"

Doctor calls execFileSync(binary, args) for the detected .cmd shim. Node cannot launch .cmd files directly with execFileSync on Windows; it needs cmd.exe /c or exec().

Image

Activity

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