Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): make Codex probe timeouts configurable #31023

Closedgyurix(GitHub profile, opens in a new tab)wants to merge 6 commits intomain fromrefs/pull/31023/headopened View on GitHub

Showing 9 changed files with 53 additions and 27 deletions (loading 7).

x
0 of 9 viewed, 9 left
40 additions and 20 deletionsapps/server/src/provider/Drivers/CodexDriver.tsModified
View file
@@ -30,6 +30,7 @@
checkCodexProviderStatus,
makePendingCodexProvider,
makeCodexSkillsProbe,
+ readCodexProbeTimeouts,
withCodexAppServerClient,
} from "../CodexProvider.ts";
import { resolveCodexLaunchArgs } from "../codexLaunchArgs.ts";
@@ -177,6 +178,8 @@
config,
});
const spawner = yield* ChildProcessSpawner.ChildProcessSpawner;
+ const providerHost = yield* ProviderHost.ProviderHost;
+ const probeTimeouts = readCodexProbeTimeouts(providerHost);
const resetCreditCoordinator = yield* ResetCreditCoordinator.ResetCreditCoordinator;
const fileSystem = yield* FileSystem.FileSystem;
const pathService = yield* Path.Path;
@@ -271,7 +274,11 @@
const checkProvider = modelCatalog.refreshInBackground.pipe(
Effect.andThen(
Effect.zipWith(
- checkCodexProviderStatus(effectiveConfig, undefined, processEnv),
+ probeTimeouts.pipe(
+ Effect.flatMap((timeouts) =>
+ checkCodexProviderStatus(effectiveConfig, undefined, processEnv, undefined, timeouts),
+ ),
+ ),
currentCatalog,