What
When the bridge token refresher exhausts its retry chain it now reports the failure instead of stopping quietly, and re-logging in cancels bridge init attempts that started under the old credentials.
Details
- On exhaustion it logs an error built from the fixed fragment "Refresh chain exhausted for sessionId=" plus the session id and failure count, emits
bridge_token_refresh_exhausted, and returns "no_oauth_token" to the caller. - App state gained
authChangeGeneration, bumped on login or account change; bridge init compares it before applying results. - The 401 recovery path keys off a per-endpoint
needsOAuthRefreshflag and aborts init after a successful refresh rather than continuing with the stale response.
Evidence
bridge_token_refresh_exhausted
Strings lifted out of the shipped bundle, so the claim above can be checked against them.