You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: separate retry flags for GET-SSE vs POST; forward send() options on retry
Two fixes from claude[bot] round-6 review:
1. Shared _authRetryInFlight between _startOrAuthSse() and send()
created a race: if the fire-and-forget GET SSE gets 401 and sets
the flag while awaiting onUnauthorized(), a concurrent POST send()
that also gets 401 would see flag=true and throw ClientHttpAuthentication
without ever attempting its own re-auth. The old _hasCompletedAuthFlow
was only set in send() — I introduced the regression when adding
401 handling to _startOrAuthSse. Split into _authRetryInFlight
(send path) and _sseAuthRetryInFlight (GET-SSE path).
2. Pre-existing: send() 401/403 retries called this.send(message)
without forwarding the options parameter, dropping onresumptiontoken
on the retried request. Added options to both call sites.
0 commit comments