The metrics opt-out check can no longer trigger a surprise second sign-in.
What's wrong with this entry?
The request that checks whether metrics logging is opted out is now tied to the session's existing credential and shares a one-shot refresh marker, so it cannot kick off its own re-authentication. Failures are classified as 401, 403, timeout, network error, 5xx, other 4xx or unknown. The telemetry shutdown wait is clamped by CLAUDE_CODE_OTEL_SHUTDOWN_TIMEOUT_MS.
gateToSessionOAuthCredential
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
-
v2.1.232
Shutdown waits up to 1000ms for pending work to flush
Both mention shutdown
-
v2.1.236
Exiting can no longer hang
Both mention shutdown
-
v2.1.238
Pending writes get a chance to finish before exit
Both mention shutdown