Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): tool calls a released session cuts off no longer keep the thread Waiting #29036

MergedNotReliable(GitHub profile, opens in a new tab)merged 12 commits intomain fromrefs/pull/29036/headmerged by juliusmarminge View on GitHub

Showing 6 changed files with 170 additions and 3 deletions (loading 5).

x
0 of 6 viewed, 6 left
170 additions and 3 deletionsapps/server/src/orchestration-v2/testkit/ProviderSwitch.integration.test.tsModified
View file
@@ -8,6 +8,7 @@
MessageId,
type ModelSelection,
type OrchestrationV2Command,
+ type OrchestrationV2DomainEvent,
type OrchestrationV2ProviderCapabilities,
type OrchestrationV2ProviderSession,
type OrchestrationV2ProviderThread,
@@ -23,6 +24,7 @@
TurnItemId,
ProviderDriverKind,
} from "@t3tools/contracts";
+import { derivePendingBackgroundWork } from "@t3tools/shared/orchestrationV2PendingBackgroundWork";
import * as DateTime from "effect/DateTime";
import * as Deferred from "effect/Deferred";
import * as Effect from "effect/Effect";
@@ -121,6 +123,12 @@
readonly subagentOnlyBackgroundWork?: boolean;
readonly holdFirstTurn?: Deferred.Deferred<void>;
readonly releaseFirstTurn?: Deferred.Deferred<void>;
+ /** A tool call the held turn reports running before it holds. */
+ readonly heldRunningToolCall?: {
+ readonly id: TurnItemId;
+ readonly toolName: string;
+ };
+ readonly backgroundTasksEndWithProcess?: true;
readonly backgroundWork?: Ref.Ref<boolean>;
readonly closedSessions?: Ref.Ref<ReadonlyArray<string>>;