GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — macOS desktop app fails to detect Codex when login shell is Nushell · Issue #309 · pingdotgg/t3code Closed DescriptionSummaryOn macOS, the packaged desktop app fails to detect The failure is caused by the macOS PATH bootstrap code invoking the user shell with POSIX-style arguments: execFileSync(shell, ["-ilc", "echo -n $PATH"], ...) That command is invalid for Codex CLI (`codex`) is not installed or not on PATH. This appears distinct from the existing fish-shell report in #218. Fish corrupts PATH formatting; Nushell fails earlier because the probe command itself is not valid. Related issues:
Environment
Reproduction
chsh -s /opt/homebrew/bin/nu
command -v codex
codex --version
Actual resultThe app shows: Codex CLI (`codex`) is not installed or not on PATH. Expected resultIf Root causeThe current macOS PATH bootstrap uses the desktop process environment shell directly:
Current logic: const shell = process.env.SHELL ?? "/bin/zsh"; const result = execFileSync(shell, ["-ilc", "echo -n $PATH"], { encoding: "utf8", timeout: 5000, }); For Nushell, this is not a valid command. Running the equivalent manually fails: $ /opt/homebrew/bin/nu -ilc 'echo -n $PATH' Error: nu::parser::unknown_flag The `echo` command doesn't have flag `-n`. Because the PATH probe fails, the app keeps a reduced inherited PATH and later Additional debugging notesI verified all of the following on the affected machine:
Suggested fixThere are two separate robustness issues in the macOS PATH bootstrap:
A fix should make both codepaths more defensive:
At minimum:
Why this mattersThis is not just a Nushell feature request. The current implementation makes the packaged macOS desktop app brittle for any shell that does not accept POSIX-compatible That means the app can report a false-negative “codex not installed” state even when 🤖 This content was generated with AI assistance using GPT-5.4. Reacted by DrLehman and Lorenz Bank Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |