Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.242 Home All releases olderv2.1.241 v2.1.243newer
Claude Code v2.1.242

Cloud headless can ask its host to refresh the OAuth token

Not switched on
Useful2 Signal3
Auth Notable not in their notes

A host program can take over refreshing your login token, off unless an env var is set.

OAuth refresh delegation installs only when CLAUDE_CODE_SDK_HAS_OAUTH_REFRESH is set and the entrypoint matches.

CLAUDE_CODE_SDK_HAS_OAUTH_REFRESHCLAUDE_CODE_ENTRYPOINT
What

Instead of refreshing the login token itself, the client can hand that job to the program embedding it. This is installed only when CLAUDE_CODE_SDK_HAS_OAUTH_REFRESH is set and CLAUDE_CODE_ENTRYPOINT names one of a fixed set of entry points, so it is off by default.

Details
  • Whether the bridge was installed is reported as oauth_bridge in the session-started event.
Evidence

CLAUDE_CODE_SDK_HAS_OAUTH_REFRESH

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.

See this entry in the whole of v2.1.242 →