GeezerVison is showing github.com — fix: run fixPath() before provider health check layer construction by JungHoonGhae · Pull Request #268 · pingdotgg/t3code
Conversation
JungHoonGhae
commented
Mar 7, 2026
•
edited by macroscopeapp
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
On macOS, Electron apps inherit a minimal PATH that typically excludes directories like /opt/homebrew/bin. The Codex provider health check (ProviderHealthLive) runs during layer construction in LayerLive, which happens before the existing fixPath() call in makeServerProgram. This means the health check cannot locate the codex binary even when it is properly installed via Homebrew or npm global, causing:
Codex CLI (codex) is not installed or not on PATH.
This PR moves the fixPath() call to module-level in main.ts so it executes before any layer construction begins. The existing call inside makeServerProgram is kept as-is since fixPath() is idempotent.
Reproduction
- Install Codex CLI via npm global (
npm i -g @openai/codex)
- Open T3 Code (Alpha) on macOS — the Electron app does not include
/opt/homebrew/bin in its PATH
- Observe "Codex CLI (
codex) is not installed or not on PATH" error in provider status
Test plan
-
bun lint passes (0 errors)
-
bun run test passes (392 tests, 0 failures)
- Existing
ProviderHealth.test.ts tests still pass
Note
Run apps/server bootstrap fixPath() before constructing provider health check layers in main.ts
Insert an early call to fixPath() during module bootstrap in main.ts before building layers and executing provider health checks.
📍Where to Start
Begin at the module bootstrap in main.ts, focusing on the early fixPath() invocation and the subsequent health check layer construction.
Macroscope summarized 15a383b.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
On macOS, Electron apps inherit a minimal PATH that typically excludes
directories like /opt/homebrew/bin. The Codex provider health check
(ProviderHealthLive) runs during layer construction, which happens
before the existing fixPath() call in makeServerProgram. This means
the health check cannot locate the `codex` binary even when it is
properly installed via Homebrew or npm global.
Move fixPath() to module-level so it executes before any layer
construction begins. The existing call inside makeServerProgram is
kept as-is since fixPath() is idempotent.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Important
Review skipped
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 6a2678e3-e496-4756-b462-24ac5012efbe
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
✨ Finishing Touches
🧪 Generate unit tests (beta)
- Create PR with unit tests
- Post copyable unit tests in a comment
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment @coderabbitai help to get the list of available commands and usage tips.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Closing in favor of #248 which addresses the same PATH resolution issue more comprehensively (shared shellPath resolver, ANSI stripping, fish support, desktop+server coverage).
|
baggiiiie reacted with heart emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.