Claude Code v2.1.221 ·
CCR client can adopt refreshed auth pushed over the event stream
Long sessions can pick up fresh credentials pushed over the live connection instead of dropping out.
Under the hood
No documentation found New Features
JSON
All of v2.1.221
Under the hoodTier: how much it should matter to you
2Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
AuthArea: what it touches
New FeaturesKind: in v2.1.221,
New FeaturesSection of the release
What
The realtime client can take new credentials delivered inside the event stream instead of waiting for a local refresh.
Details
- the client accepts an
adoptRefreshedAuth callback and invokes it when an event carries refreshed_auth - session wiring supplies the callback only when
CLAUDE_CODE_ENVIRONMENT_KIND is unset - environments that set
CLAUDE_CODE_ENVIRONMENT_KIND get no callback and keep the previous behaviour
Evidence
adoptRefreshedAuth
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
See this entry in the whole of v2.1.221 →