Skip to content

feat(daemon): auto-approve permission prompts matching user rules - #24

Open
dominicletz wants to merge 1 commit into
ahilles107:mainfrom
dominicletz:feat/auto-approve-prompts
Open

dominicletz wants to merge 1 commit into
ahilles107:mainfrom
dominicletz:feat/auto-approve-prompts

Conversation

@dominicletz

Copy link
Copy Markdown

Add an owner-configured list of rules (auto_approve_rules, set through set_config and the desktop Settings → Connection pane). When a Claude Code permission notification fires, the daemon reads the dialog from the bot's terminal output and, if a rule matches, presses Enter to accept the default "Yes". The hook text names no tool, so the dialog itself is matched.

Rules are case-insensitive substrings with * wildcards; dashes and whitespace are interchangeable. The list is empty by default, persisted in the meta table, and a match-everything rule is refused.

Add an owner-configured list of rules (`auto_approve_rules`, set through
`set_config` and the desktop Settings → Connection pane). When a Claude Code
permission notification fires, the daemon reads the dialog from the bot's
terminal output and, if a rule matches, presses Enter to accept the default
"Yes". The hook text names no tool, so the dialog itself is matched.

Rules are case-insensitive substrings with `*` wildcards; dashes and
whitespace are interchangeable. The list is empty by default, persisted in
the meta table, and a match-everything rule is refused.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants