Gateway: bound agent run sequence tracking

This commit is contained in:
Vignesh Natarajan
2026-02-14 17:50:49 -08:00
parent 451deb066f
commit fc8f59261a
5 changed files with 68 additions and 1 deletions

View File

@@ -419,6 +419,8 @@ export function createAgentEventHandler({
if (lifecyclePhase === "end" || lifecyclePhase === "error") {
toolEventRecipients.markFinal(evt.runId);
clearAgentRunContext(evt.runId);
agentRunSeq.delete(evt.runId);
agentRunSeq.delete(clientRunId);
}
};
}