Permission grants from hooks or SDK sessions no longer silently vanish in background agents.
What's wrong with this entry?
Permission changes coming from hooks, a permission-prompt tool or an updatedPermissions response now go through a separate session-level setter as well as the app-wide one. Contexts that intentionally do not share app state, such as background agents and some SDK hosts, pass a no-op for the app setter but still forward the session one, so a granted permission takes effect instead of vanishing.
- A helper builds both setters from a single updater for callers that do not care about the distinction.
setSessionToolPermissionContext
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.