Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.251 ·

SDK plumbing for refreshing a background session's work secret

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

Nothing to try yet In Development
JSON All of v2.1.251
Nothing to try yetTier: how much it should matter to you
2Useful: my rating, 1 to 5
4Signal: worth watching, 1 to 5
SDKArea: what it touches
In DevelopmentKind: in v2.1.251,
What probably matters to youSection of the release

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 →

Feedback