File tree Expand file tree Collapse file tree
apps/server/src/provider/Layers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,13 +22,16 @@ import type {
2222import { ServerSettingsError } from "@t3tools/contracts" ;
2323
2424import { 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" ;
2630import { expandHomePath } from "../../pathExpansion.ts" ;
2731import { scopedSafeTeardown } from "./scopedSafeTeardown.ts" ;
2832import packageJson from "../../../package.json" with { type : "json" } ;
2933const isCodexAppServerSpawnError = Schema . is ( CodexErrors . CodexAppServerSpawnError ) ;
3034
31- const PROVIDER_PROBE_TIMEOUT_MS = 8_000 ;
3235const CODEX_PRESENTATION = {
3336 displayName : "Codex" ,
3437 showInteractionModeToggle : true ,
@@ -447,7 +450,7 @@ export const checkCodexProviderStatus = Effect.fn("checkCodexProviderStatus")(fu
447450 cwd : process . cwd ( ) ,
448451 customModels : codexSettings . customModels ,
449452 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 ) ;
451454
452455 if ( Result . isFailure ( probeResult ) ) {
453456 const error = probeResult . failure ;
You can’t perform that action at this time.
0 commit comments