Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): ended roots no longer leave provider turns running #22846

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 4 commits intomain fromrefs/pull/22846/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 8 changed files with 120 additions and 8 deletions (loading 5).

x
0 of 8 viewed, 8 left
2 additions and 2 deletionsapps/server/src/orchestration-v2/Orchestrator.tsModified
View file
@@ -9112,7 +9112,7 @@
childThreadIds.add(childThreadId);
const child = yield* projectionStore
- .getThreadRecords(childThreadId, ["nodes", "subagents", "turnItems"], {
+ .getThreadRecords(childThreadId, ["nodes", "providerTurns", "subagents", "turnItems"], {
// Runless items are the subagent's; any run there is the user's own.
turnItemRunIds: [null],
turnItemStatuses: ["pending", "running", "waiting"],
@@ -9671,7 +9671,7 @@
yield* Ref.update(events, (current) => [...current, ...ended]);
if (subagent.childThreadId !== null) {
const child = yield* projectionStore
- .getThreadRecords(subagent.childThreadId, ["nodes", "turnItems"], {
+ .getThreadRecords(subagent.childThreadId, ["nodes", "providerTurns", "turnItems"], {
turnItemRunIds: [null],
turnItemStatuses: ["pending", "running", "waiting"],
100 additions and 0 deletionsapps/server/src/orchestration-v2/ProjectionRecovery.test.tsModified
View file
@@ -12,6 +12,7 @@
ProviderInstanceId,
ProviderSessionId,
ProviderThreadId,
+ ProviderTurnId,
RunId,
RuntimeRequestId,