fix: avoid sessions_send timeouts

This commit is contained in:
Peter Steinberger
2026-01-04 01:52:01 +01:00
parent cbf41859aa
commit fe67073b74
6 changed files with 10 additions and 0 deletions

View File

@@ -183,6 +183,9 @@ describe("sessions tools", () => {
(call) => call.method === "chat.history",
);
expect(agentCalls).toHaveLength(2);
for (const call of agentCalls) {
expect(call.params).toMatchObject({ lane: "nested" });
}
expect(waitCalls).toHaveLength(1);
expect(historyOnlyCalls).toHaveLength(1);
expect(waitCalls[0]?.params).toMatchObject({ afterMs: 1234 });

View File

@@ -2748,6 +2748,7 @@ function createSessionsSendTool(): AnyAgentTool {
sessionKey: resolvedKey,
idempotencyKey,
deliver: false,
lane: "nested",
};
if (timeoutSeconds === 0) {