Skip to content

change to make codex detection work in case of windows build#296

Closed
souhaiebtar wants to merge 3 commits intoDimillian:mainfrom
souhaiebtar:main
Closed

change to make codex detection work in case of windows build#296
souhaiebtar wants to merge 3 commits intoDimillian:mainfrom
souhaiebtar:main

Conversation

@souhaiebtar
Copy link
Copy Markdown
Contributor

@souhaiebtar souhaiebtar commented Jan 30, 2026

Refactor PATH handling to detect codex cli when installed on windows using npm

image image

Refactor PATH handling to detect codex cli when installed on windows using npm
Copilot AI review requested due to automatic review settings January 30, 2026 22:39
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors codex CLI discovery/execution to behave correctly on Windows builds, primarily by making PATH handling OS-aware and changing how the codex command is launched on Windows.

Changes:

  • Build PATH using env::split_paths / env::join_paths instead of hard-coded : splitting.
  • Add a Windows-only helper to suppress spawning an extra console window.
  • On Windows, execute codex via node for .js targets or cmd /C for wrapper-style installs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src-tauri/src/backend/app_server.rs
Comment thread src-tauri/src/backend/app_server.rs Outdated
Comment thread src-tauri/src/backend/app_server.rs
souhaiebtar and others added 2 commits January 30, 2026 23:56
Added tests for build_codex_path_env() and build_codex_command_with_bin()
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@souhaiebtar
Copy link
Copy Markdown
Contributor Author

@copilot open a new pull request to apply changes based on the comments in this thread

@Dimillian
Copy link
Copy Markdown
Owner

I have 0 trust in Copilot model, but feel free to open another PR with the fix

@Dimillian Dimillian closed this Feb 1, 2026
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.

3 participants