Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): make compatible Codex instance switches single-writer #8580

Closedvitaliyhayda(GitHub profile, opens in a new tab)wants to merge 9 commits intomain fromrefs/pull/8580/headopened View on GitHub

Showing 9 changed files with 60 additions and 0 deletions (loading 7).

x
0 of 9 viewed, 9 left
46 additions and 0 deletionsapps/server/src/orchestration/Layers/ProviderRuntimeIngestion.test.tsModified
View file
@@ -301,6 +301,7 @@
threadId: ThreadId.make("thread-1"),
status: "ready",
providerName: "codex",
+ providerInstanceId: ProviderInstanceId.make("codex"),
runtimeMode: "approval-required",
activeTurnId: null,
updatedAt: createdAt,
@@ -310,6 +311,7 @@
});
provider.setSession({
provider: ProviderDriverKind.make("codex"),
+ providerInstanceId: ProviderInstanceId.make("codex"),
status: "ready",
runtimeMode: "approval-required",
threadId: ThreadId.make("thread-1"),
@@ -681,6 +683,50 @@
}),
​
+ effectIt.effect("ignores a delayed source exit after target ownership commits", () =>
+ Effect.gen(function* () {
+ const harness = yield* Effect.promise(() => createHarness());
+ const threadId = asThreadId("thread-1");
+ const sourceInstanceId = ProviderInstanceId.make("codex-source");
+ const targetInstanceId = ProviderInstanceId.make("codex-target");
+ const committedAt = "2026-01-01T00:00:02.000Z";
+​