Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): bound OpenCode CLI health probes with timeouts #6577

ClosedAdolanium(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/6577/headopened View on GitHub

Showing 2 changed files with 71 additions and 7 deletions.

x
0 of 2 viewed, 2 left
52 additions and 3 deletionsapps/server/src/provider/Layers/OpenCodeProvider.test.tsModified
View file
@@ -3,8 +3,10 @@
import * as NodeServices from "@effect/platform-node/NodeServices";
import { it } from "@effect/vitest";
import * as Effect from "effect/Effect";
+import * as Fiber from "effect/Fiber";
import * as Layer from "effect/Layer";
import * as Schema from "effect/Schema";
+import * as TestClock from "effect/testing/TestClock";
import { beforeEach } from "vite-plus/test";
​
import { OpenCodeSettings } from "@t3tools/contracts";
@@ -35,6 +37,8 @@
versionStdout: DEFAULT_VERSION_STDOUT,
inventoryError: null as Error | null,
inventoryCwd: null as string | null,
+ hangVersion: false,
+ hangInventory: false,
closeCalls: 0,
inventory: {
providerList: { connected: [] as string[], all: [] as unknown[], default: {} },
@@ -47,6 +51,8 @@
this.state.versionStdout = DEFAULT_VERSION_STDOUT;
this.state.inventoryError = null;
this.state.inventoryCwd = null;
+ this.state.hangVersion = false;
+ this.state.hangInventory = false;
this.state.closeCalls = 0;
this.state.inventory = {