Skip to content

make codex work on windows#79

Open
cocktailpeanut wants to merge 2 commits intocline:mainfrom
cocktailpeanut:main
Open

make codex work on windows#79
cocktailpeanut wants to merge 2 commits intocline:mainfrom
cocktailpeanut:main

Conversation

@cocktailpeanut
Copy link

Environment

  • Your OS and version: Windows
  • Which CLI agent you're using (and its version): Codex CLI latest (but all versions fail)
  • Steps to reproduce:
    • codex cli is already installed using npm install -g @openai/codex
    • Install Kanban.
    • Launch works fine.
    • It displays codex is installed on the system and i select it
    • Select a workspace and kick off a task
  • Expected vs. actual behavior
    • Expected: Kicking off a task should spawn a new codex process and display it in the terminal view
    • Actual: spawn fails and it keeps retrying, and the screen keeps flashing with a blank page.

Why this happens:

The reason this happens is because it simply calls spawn('codex', .... This would work if codex.exe was found in PATH, but when you install codex cli with npm install -g @openai/codex the codex binary is stored as codex.cmd or codex.ps1.

This problem is windows-only (and i think this will happen with any other CLI agents that can be installed through npm)

Solution

The solution is to spawn the agent process via cmd.exe.

The solution surface is minimal change, only for windows.

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