Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions crates/goose/src/providers/codex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,13 @@ impl CodexProvider {
let mut cmd = Command::new(&self.command);
configure_command_no_window(&mut cmd);

// Propagate extended PATH so the codex subprocess can find Node.js
// and other dependencies (especially when launched from the desktop app
// where the inherited PATH is limited).
if let Ok(path) = SearchPaths::builder().with_npm().path() {
cmd.env("PATH", path);
}

// Use 'exec' subcommand for non-interactive mode
cmd.arg("exec");

Expand Down