The best way to control Claude Code, Codex and more from any computer or phone
fix(codex): use longer and shared auth probe timeout for provider status check (#2616)
Utkarsh Patil committed
May 11, 2026 at 12:59 UTC
6ab8f93a23465d0d92e55d2a9173307fa2295d9c
1 file changed
+6
-3
apps/server/src/provider/Layers/CodexProvider.ts
+6
-3
@@ -22,13 +22,16 @@ import type {
22
import { ServerSettingsError } from "@t3tools/contracts";
23
24
import { createModelCapabilities } from "@t3tools/shared/model";
25
-import { buildServerProvider, type ServerProviderDraft } from "../providerSnapshot.ts";
25
+import {
26
+ AUTH_PROBE_TIMEOUT_MS,
27
+ buildServerProvider,
28
+ type ServerProviderDraft,
29
+} from "../providerSnapshot.ts";
30
import { expandHomePath } from "../../pathExpansion.ts";
31
import { scopedSafeTeardown } from "./scopedSafeTeardown.ts";
32
import packageJson from "../../../package.json" with { type: "json" };
33
const isCodexAppServerSpawnError = Schema.is(CodexErrors.CodexAppServerSpawnError);
34
31
-const PROVIDER_PROBE_TIMEOUT_MS = 8_000;
35
const CODEX_PRESENTATION = {
36
displayName: "Codex",
37
showInteractionModeToggle: true,
@@ -447,7 +450,7 @@ export const checkCodexProviderStatus = Effect.fn("checkCodexProviderStatus")(fu
450
cwd: process.cwd(),
451
customModels: codexSettings.customModels,
452
environment,
450
- }).pipe(Effect.timeoutOption(Duration.millis(PROVIDER_PROBE_TIMEOUT_MS)), Effect.result);
453
+ }).pipe(Effect.timeoutOption(Duration.millis(AUTH_PROBE_TIMEOUT_MS)), Effect.result);
454
455
if (Result.isFailure(probeResult)) {
456
const error = probeResult.failure;