Merge d0afae14327243e2f4827b86b7d75718d1863668 into 598f1826d8b2bc969aace2c6459824737667218c

This commit is contained in:
Vidos 2026-03-21 03:15:10 +00:00 committed by GitHub
commit 0d59b6fff6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -682,6 +682,7 @@ describe("agent request events", () => {
channel: "telegram",
to: "123",
});
expect(opts.runId).toBe(opts.sessionId);
expect(typeof opts.runId).toBe("string");
expect(opts.runId).not.toBe(opts.sessionId);
});
});

View File

@ -431,7 +431,9 @@ export const handleNodeEvent = async (ctx: NodeEventContext, nodeId: string, evt
void agentCommandFromIngress(
{
runId: sessionId,
// Each ingress request must get its own run id. Reusing sessionId
// collapses per-run gateway state (seq tracking, aborts, tool streams).
runId: randomUUID(),
message,
images,
sessionId,