Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): slow-starting Codex app-server no longer reports Unavailable #27262

Openjuliusmarmingewants to merge 12 commits intomain fromrefs/pull/27262/headopened View on GitHub

Showing 4 changed files with 44 additions and 7 deletions (loading 1).

x
0 of 4 viewed, 4 left
8 additions and 1 deletionapps/server/src/provider/Drivers/CodexDriver.tsModified
View file
@@ -28,6 +28,7 @@
import * as ResetCreditCoordinator from "../resetCreditCoordinator.ts";
import {
checkCodexProviderStatus,
+ CODEX_APP_SERVER_PROBE_TIMEOUT_MS,
makePendingCodexProvider,
probeCodexSkillsForCwd,
withCodexAppServerClient,
@@ -334,7 +335,13 @@
environment: processEnv,
}).pipe(
Effect.scoped,
- Effect.timeout(resolveProviderProbeTimeoutMs("codex", 20_000, processEnv)),
+ Effect.timeout(
+ resolveProviderProbeTimeoutMs(
+ "codex",
+ CODEX_APP_SERVER_PROBE_TIMEOUT_MS,
+ processEnv,
+ ),
+ ),
Effect.provideService(ChildProcessSpawner.ChildProcessSpawner, spawner),
]).pipe(
4 additions and 3 deletionsapps/server/src/provider/CodexProvider.tsModified
View file
@@ -125,8 +125,9 @@
const CODEX_CONFIG_PROBE_TIMEOUT_MS = 3_000;