Skip to content

Commit e589087

Browse files
committed
fix(codex): keep subagent quota health scoped to the retried account
After a successful same-request pool failover, update subagentFallbackAccountId so streamed terminal 429s attribute health to the account that actually served.
1 parent 2556576 commit e589087

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/server/responses/core.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,6 +1445,8 @@ export async function handleResponses(
14451445
request = retry.request;
14461446
upstreamResponse = retry.upstreamResponse;
14471447
selectedForwardHeaders = retry.selectedForwardHeaders;
1448+
// Keep subagent quota-failure health keyed to the account that actually served.
1449+
subagentFallbackAccountId = retry.authCtx.accountId;
14481450
}
14491451
}
14501452
}

0 commit comments

Comments
 (0)