Fixed a bug where refreshed auth headers weren't actually applied on SSE reconnect, and retry logs showed the wrong status
When Claude Code's SSE (Server-Sent Events, a streaming connection type) transport reconnects, it refreshes authentication headers, but a bug meant the freshly computed headers weren't actually applied to the request — an undefined or stale variable was used instead. This is now fixed so the real refreshed headers are assigned. A related bug in POST-retry logging and telemetry, where the logged response status or error came from a mismatched variable left over from a previous iteration, is also fixed to report the actual current status.
Before this fix, a reconnecting SSE connection could silently keep using stale credentials, and retry logs could report misleading status information, both of which made connection problems harder to diagnose.