Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): auto-delivered messages queue between provider turns #15691

MergedGigioxx(GitHub profile, opens in a new tab)merged 6 commits intomain fromrefs/pull/15691/headmerged by maria-rcks View on GitHub

Showing 2 changed files with 55 additions and 2 deletions.

x
0 of 2 viewed, 2 left
46 additions and 1 deletionapps/server/src/orchestration-v2/CommandPolicy.test.tsModified
View file
@@ -7,6 +7,7 @@
ProviderInstanceId,
ProviderSessionId,
ProviderThreadId,
+ RunAttemptId,
RunId,
ThreadId,
} from "@t3tools/contracts";
@@ -20,6 +21,7 @@
const commandId = CommandId.make("command-policy-test");
const threadId = ThreadId.make("command-policy-thread");
const activeRunId = RunId.make("command-policy-active-run");
+const activeAttemptId = RunAttemptId.make("command-policy-active-attempt");
const userMessageId = MessageId.make("command-policy-user-message");
​
const baseCapabilities: OrchestrationV2ProviderCapabilities = CodexProviderCapabilitiesV2;
@@ -39,7 +41,15 @@
runs:
sessionCapabilities === undefined
? []
- : [{ id: activeRunId, status: "running", providerThreadId, userMessageId }],
+ : [
+ {
+ id: activeRunId,
+ status: "running",
+ providerThreadId,
+ activeAttemptId,
+ userMessageId,