[Feature Request] PreToolUse approve and don't ask again in this session
Currently, the PreToolUse hook output allows the following:
{
"decision": "approve" | "block" | undefined,
"reason": "Explanation for decision"
}
I would like the option for the decision to be "approveSessionUse", similar to how when the user prompted for a tool use, they get the option of "Yes, and don't ask again this session".
The current workaround is to add an entry to .claude/settings.local.json in the permissions section, but claude code does not refresh its knowledge of that file while it's running. It requires a restart of Claude Code (side-note, it would be nice if claude code could read from that file realtime!).
This would enable a more native-like experience with external claude code clients.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗