Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): dismiss native questions when their turn ends #9851

Mergedjuliusmarmingemerged 4 commits intomain fromrefs/pull/9851/headmerged by juliusmarminge View on GitHub

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

x
0 of 2 viewed, 2 left
187 additions and 0 deletionsapps/server/src/orchestration/Layers/ProviderRuntimeIngestion.test.tsModified
View file
@@ -20,6 +20,7 @@
type OrchestrationCommand,
ProjectId,
ProviderItemId,
+ RuntimeRequestId,
type ServerSettings,
ThreadId,
TurnId,
@@ -30,6 +31,7 @@
import * as Exit from "effect/Exit";
import * as Layer from "effect/Layer";
import * as ManagedRuntime from "effect/ManagedRuntime";
+import * as Option from "effect/Option";
import * as PubSub from "effect/PubSub";
import * as Scope from "effect/Scope";
import * as Stream from "effect/Stream";
@@ -372,6 +374,12 @@
engine,
dispatch,
readModel: () => testRuntime.runPromise(snapshotQuery.getSnapshot()),
+ readThreadShell: () =>
+ testRuntime.runPromise(
+ snapshotQuery
+ .getThreadShellById(asThreadId("thread-1"))
+ .pipe(Effect.map(Option.getOrThrow)),
+ ),
emit: provider.emit,
emitAndDrain,