Long sessions can pick up fresh credentials pushed over the live connection instead of dropping out.
What's wrong with this entry?
The realtime client can take new credentials delivered inside the event stream instead of waiting for a local refresh.
- the client accepts an
adoptRefreshedAuthcallback and invokes it when an event carriesrefreshed_auth - session wiring supplies the callback only when
CLAUDE_CODE_ENVIRONMENT_KINDis unset - environments that set
CLAUDE_CODE_ENVIRONMENT_KINDget no callback and keep the previous behaviour
adoptRefreshedAuth
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.248
MCP errors sent to Remote Control clients are filtered to a fixed list
Both mention environment kind
-
v2.1.248
get_settings is refused on remote connections
Both mention environment kind
-
v2.1.248
SDK stream transport can re-read auth headers, except in managed environments
Both mention environment kind