We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd9e5c3 commit 9b132bdCopy full SHA for 9b132bd
1 file changed
src/gateway/server-runtime-subscriptions.ts
@@ -46,7 +46,8 @@ export function startGatewayEventSubscriptions(params: {
46
sessionEventSubscribers: params.sessionEventSubscribers,
47
sessionMessageSubscribers: params.sessionMessageSubscribers,
48
clearTrackedActiveRun: ({ runId, clientRunId }) => {
49
- for (const candidateRunId of new Set([runId, clientRunId])) {
+ const candidateRunIds = runId === clientRunId ? [runId] : [runId, clientRunId];
50
+ for (const candidateRunId of candidateRunIds) {
51
const entry = params.chatAbortControllers.get(candidateRunId);
52
// Chat abort entries can hold the requested key while chat run
53
// state holds the canonical key; the run ids are the scoped match.
0 commit comments