Skip to content

Conversation

@ibetitsmike
Copy link
Contributor

Generated with mux

When Electron spawns child processes without shell: true, it uses a minimal PATH that doesn't include directories like /opt/homebrew/bin. This caused 'Editor command not found' errors for commands like code even when they were available in the user's terminal.

Adding shell: true to both the command availability check and the spawn calls ensures we use the user's full shell environment.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

When Electron spawns child processes without shell: true, it uses a
minimal PATH that doesn't include directories like /opt/homebrew/bin.
This caused 'Editor command not found' errors for commands like 'code'
even when they were available in the user's terminal.

Adding shell: true to both the command availability check and the
spawn calls ensures we use the user's full shell environment. Arguments
are properly quoted with shellQuote() to handle paths containing spaces.
@ibetitsmike ibetitsmike added this pull request to the merge queue Dec 10, 2025
Merged via the queue into main with commit 89e52e0 Dec 10, 2025
20 checks passed
@ibetitsmike ibetitsmike deleted the editor-sd0t branch December 10, 2025 13:01
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