Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): a run no longer stays working after its idle session is released #14507

Closedsaphid(GitHub profile, opens in a new tab)wants to merge 5 commits intot3code/codex-turn-mapping fromrefs/pull/14507/headopened View on GitHub

Showing 7 changed files with 189 additions and 0 deletions (loading 5).

x
0 of 7 viewed, 7 left
2 additions and 0 deletionsapps/server/src/orchestration-v2/EffectWorker.test.tsModified
View file
@@ -15,6 +15,7 @@
import * as Exit from "effect/Exit";
import * as Layer from "effect/Layer";
import * as Option from "effect/Option";
+import * as Stream from "effect/Stream";
import * as Queue from "effect/Queue";
import * as Ref from "effect/Ref";
import * as TestClock from "effect/testing/TestClock";
@@ -101,6 +102,7 @@
shutdown: Effect.void,
open: () => Effect.die("unused open"),
get: () => Effect.succeed(Option.none()),
+ idleReleases: Stream.empty,
close: () => Effect.void,
closeInstance: () => Effect.void,
release: () => record("release"),
187 additions and 0 deletionsapps/server/src/orchestration-v2/ProviderRuntimeRecoveryService.test.tsModified
View file
@@ -1272,3 +1272,190 @@
}).pipe(Effect.provide(layer));
+​
+const releasedSessionFixture = (
+ secondRunStatus: "queued" | "preparing" | "waiting",
+ otherSessionStatus: "stopped" | "ready" = "stopped",
+) => {