Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): slow OpenCode wrappers no longer show as unavailable #16544

Mergedjosephv123(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/16544/headmerged by juliusmarminge View on GitHub

Showing 2 changed files with 27 additions and 4 deletions.

x
0 of 2 viewed, 2 left
25 additions and 3 deletionspackages/provider-opencode/src/server/status.test.tsModified
View file
@@ -3,6 +3,7 @@
import * as NodeServices from "@effect/platform-node/NodeServices";
import { it } from "@effect/vitest";
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 FileSystem from "effect/FileSystem";
@@ -169,6 +170,7 @@
state: {
runVersionError: null as Error | null,
runVersionPending: false,
+ runVersionDelay: null as Duration.Input | null,
versionStdout: DEFAULT_VERSION_STDOUT,
inventoryError: null as Error | null,
connectionError: null as Error | null,
@@ -188,6 +190,7 @@
reset() {
this.state.runVersionError = null;
this.state.runVersionPending = false;
+ this.state.runVersionDelay = null;
this.state.versionStdout = DEFAULT_VERSION_STDOUT;
this.state.inventoryError = null;
this.state.connectionError = null;
@@ -260,7 +263,11 @@
cause: runtimeMock.state.runVersionError,
}),