Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
fix(codex): use longer and shared auth probe timeout for provider status check (#2616)
Utkarsh Patil6ab8f93a2346
diff --git a/apps/server/src/provider/Layers/CodexProvider.ts b/apps/server/src/provider/Layers/CodexProvider.tsindex d421259b2..6841591d0 100644--- a/apps/server/src/provider/Layers/CodexProvider.ts+++ b/apps/server/src/provider/Layers/CodexProvider.ts@@ -22,13 +22,16 @@ import type {import { ServerSettingsError } from "@t3tools/contracts";import { createModelCapabilities } from "@t3tools/shared/model";-import { buildServerProvider, type ServerProviderDraft } from "../providerSnapshot.ts";+import {+ AUTH_PROBE_TIMEOUT_MS,+ buildServerProvider,+ type ServerProviderDraft,+} from "../providerSnapshot.ts";import { expandHomePath } from "../../pathExpansion.ts";import { scopedSafeTeardown } from "./scopedSafeTeardown.ts";import packageJson from "../../../package.json" with { type: "json" };const isCodexAppServerSpawnError = Schema.is(CodexErrors.CodexAppServerSpawnError);-const PROVIDER_PROBE_TIMEOUT_MS = 8_000;const CODEX_PRESENTATION = {displayName: "Codex",showInteractionModeToggle: true,@@ -447,7 +450,7 @@ export const checkCodexProviderStatus = Effect.fn("checkCodexProviderStatus")(fucwd: process.cwd(),customModels: codexSettings.customModels,environment,- }).pipe(Effect.timeoutOption(Duration.millis(PROVIDER_PROBE_TIMEOUT_MS)), Effect.result);+ }).pipe(Effect.timeoutOption(Duration.millis(AUTH_PROBE_TIMEOUT_MS)), Effect.result);if (Result.isFailure(probeResult)) {const error = probeResult.failure;