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.251 Home All releases olderv2.1.250
Claude Code v2.1.251

SDK plumbing for refreshing a background session's work secret

Not switched on
Useful2 Signal4
SDK

The SDK can refresh a background session's credential, but only if the host provides a callback.

Work-secret refresh is fully wired end to end but throws unless the SDK host supplies the callback.

What

The SDK's query layer now handles a control request that asks the host to refresh the credential a background session uses when driven by remote control, and there is a matching caller that sends it end to end. It is complete rather than a stub, but only works if the SDK host supplies the refresh callback; otherwise the request throws "refreshWorkSecret callback is not provided."

Details
  • The query object tracks the host-supplied callback plus a counter of remote-control calls, so repeat refreshes can be told apart.
  • Nothing in normal interactive use reaches this path; it exists for hosts embedding Claude Code with background remote-controlled sessions.
Evidence

remote_control_work_secret

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.251 →