GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: run fixPath() before provider health check layer construction by JungHoonGhae · Pull Request #268 · pingdotgg/t3code

Conversation

@JungHoonGhae

@JungHoonGhae JungHoonGhae commented Mar 7, 2026 •
edited by macroscopeapp Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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

  1. Install Codex CLI via npm global (npm i -g @openai/codex)
  2. Open T3 Code (Alpha) on macOS — the Electron app does not include /opt/homebrew/bin in its PATH
  3. 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.

All reactions
@JungHoonGhae
fix: run fixPath() before provider health check layer construction
15a383b
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.
@vercel

vercel Bot commented Mar 7, 2026

Copy link
Copy Markdown

@JungHoonGhae is attempting to deploy a commit to the Ping Labs Team on Vercel.

A member of the Team first needs to authorize it.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Mar 7, 2026

Copy link
Copy Markdown
Contributor

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:

  • 🔍 Trigger review
✨ 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
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands and usage tips.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@JungHoonGhae

JungHoonGhae commented Mar 7, 2026

Copy link
Copy Markdown
Author

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
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@JungHoonGhae JungHoonGhae closed this Mar 7, 2026
@rawphp rawphp mentioned this pull request Oct 25, 2026
Trilogy Mac: autodeploy starved for 6.5h+ because a factory run is always in progress original-solutions/t3code-factory#227
Closed
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

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.

1 participant

@JungHoonGhae
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.
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.