Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(provider): retry timed-out status probes #22794

Closedjuliusmarmingewants to merge 3 commits intomain fromfix/issue-7230opened View on GitHub

Showing 2 changed files with 189 additions and 0 deletions (loading 1).

x
0 of 2 viewed, 2 left
189 additions and 0 deletionspackages/provider-core/src/server/managedProvider.test.tsModified
View file
@@ -7,12 +7,14 @@
} from "@t3tools/contracts";
import { createModelCapabilities } from "@t3tools/shared/model";
import * as Deferred from "effect/Deferred";
+import * as Duration from "effect/Duration";
import * as Effect from "effect/Effect";
import * as Fiber from "effect/Fiber";
import * as Layer from "effect/Layer";
import * as PubSub from "effect/PubSub";
import * as Ref from "effect/Ref";
import * as Stream from "effect/Stream";
+import * as TestClock from "effect/testing/TestClock";
​
import * as ProviderHost from "./ProviderHost.ts";
import { makeManagedServerProvider } from "./managedProvider.ts";
@@ -464,6 +466,193 @@
).pipe(Effect.provide(layerAlwaysRunTest)),
​
+ // Mirrors the snapshot ClaudeProvider builds when `--version` exceeds its deadline.
+ const timedOutSnapshot: ServerProvider = {
+ ...initialSnapshot,
+ status: "error",
+ checkedAt: "2026-04-10T00:00:01.000Z",
+ message: "Claude Agent CLI is installed but failed to run. Timed out while running command.",
+ };
+ // Just under DEFAULT_PROVIDER_HEALTH_REFRESH_INTERVAL, so the periodic refresh cannot be what recovers.
+ const beforePeriodicRefresh = "299 seconds";
+​