Permission requests from remote agents can only be approved once, never remembered.
What's wrong with this entry?
When a permission request comes from a remote agent, Claude Code will not offer to remember the decision. The always-allow option is suppressed and the usual rule suggestions are hidden, the same way they are for requests capped by an organisation policy. Approvals from remote agents are one-time only.
- Two separate guards: one on the computation that decides whether an always-allow choice is available, one in the suggestion UI.
- Local requests are unaffected and still offer persistent rules.
e.requestSource?.type === "remote-agent"
Strings lifted out of the shipped bundle, so the claim above can be checked against them.