Edit tool's 'always allow' rules now track when they came from a host permission dialog
Claude Code now keeps a per-session record of rule text added for the Edit tool's session-scoped "always allow" behavior, via a tracked set called editRuleContents. A new helper checks whether a given permission rule matches one of these tracked entries, and if so, reports that the rule's origin ('provenance') was a host_dialog, meaning it came from a host application's permission dialog rather than another source.
This lets Claude Code distinguish permission rules granted through a host application's own dialog from rules created other ways, which is useful for understanding where an editing permission actually came from.