Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): explain how to configure a missing Codex executable #11345

Mergedshivamhwp(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/11345/headmerged by maria-rcks View on GitHub

Showing 2 changed files with 29 additions and 13 deletions.

x
0 of 2 viewed, 2 left
4 additions and 1 deletionapps/server/src/provider/Layers/CodexProvider.tsModified
View file
@@ -628,7 +628,10 @@
auth: { status: "unknown" },
message: installed
? `Codex app-server provider probe failed: ${error.message}.`
- : "Codex CLI (`codex`) was not found on PATH.",
+ : `Could not start Codex CLI (\`${codexSettings.binaryPath}\`). Check Settings → Providers → Codex → Binary path on the server.` +
+ (codexSettings.binaryPath === "codex"
+ ? " Installing ChatGPT or Codex desktop may not add codex to PATH."
+ : " Make sure the configured executable exists and can be run."),
});
25 additions and 12 deletionsapps/server/src/provider/Layers/ProviderRegistry.test.tsModified
View file
@@ -513,20 +513,35 @@
}),
​
- it.effect("returns unavailable when codex is missing", () =>
+ it.effect.each([
+ "codex",
+ "/Applications/Custom App.app/Contents/Resources/codex",
+ "C:\\Tools\\codex.exe",
+ ])("explains how to configure a Codex executable that cannot start: %s", (binaryPath) =>
Effect.gen(function* () {
- const status = yield* checkCodexProviderStatus(defaultCodexSettings, () =>
- Effect.fail(
+ const settings = { ...defaultCodexSettings, binaryPath };