Skip to content

Add permission scope toggle (this project / all projects) to Always Allow#202

Open
leonidasbarkas98-cpu wants to merge 1 commit into
andrepimenta:mainfrom
leonidasbarkas98-cpu:feat/permission-scope-toggle
Open

Add permission scope toggle (this project / all projects) to Always Allow#202
leonidasbarkas98-cpu wants to merge 1 commit into
andrepimenta:mainfrom
leonidasbarkas98-cpu:feat/permission-scope-toggle

Conversation

@leonidasbarkas98-cpu

Copy link
Copy Markdown

The CLI already sends permission_suggestions including a destination, but the UI only offered an implicit "Always Allow". This adds a scope selector (this project / all projects) and filters the updated permissions by the chosen destination (fallback: all).

Same goal as PR #177, reimplemented on current main.

🤖 Generated with Claude Code

Lets users choose whether an "always allow" permission rule applies
only to this project or to all projects, based on Claude CLI's
permission_suggestions destinations (projectSettings/localSettings vs.
userSettings). Suggestions are now filtered by the chosen scope before
being sent back as updatedPermissions instead of being forwarded
unfiltered; falls back to all suggestions if no scope was chosen or
filtering leaves nothing.

Concept adapted from upstream PR andrepimenta#177 to the current stdio-based
permission flow (button labels kept as-is).

Co-Authored-By: Claude Fable 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.

1 participant