Repository navigation
Per-provider default permissions mode (with working prototype) #40711
Knuckles92
started this conversation in
Ideas
Replies: 1 comment
|
I'm experiencing this as well — I keep my global default on Auto, but Antigravity's Auto mode isn't great, so I have to change permissions manually every time. Being able to set default permissions per provider (or per model) would be really helpful, and I'd appreciate seeing this implemented! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Problem
Today, default permissions (
defaultRuntimeMode) can only be configured globally or per project. Users who run multiple providers with different trust levels—for example, keeping one provider on Supervised or Auto while letting another run in Full access—have to manually switch the permissions mode on every new thread or whenever they switch providers mid-thread.(Related Ideas discussions: #17125, #34317)
Proposed Design
Add an optional
defaultRuntimeModeoverride directly on each provider instance (ProviderInstanceConfig), so every provider and custom account gets it automatically without per-driver duplication.Precedence (highest → lowest)
supportedRuntimeModes).Switching providers mid-thread & on drafts
When switching the model picker to a model from a different provider (on both new drafts and existing threads), permissions automatically update to the newly selected provider’s resolved default whenever per-provider defaults are in effect. Switching between models on the same provider preserves your current permissions, and switching between two providers that both inherit the environment default (or inside a project with an explicit project override) preserves manual per-thread choices.
Screenshots
1. Choosing a provider’s default permissions in Settings → Providers
Each provider card gets a Default permissions row that inherits the general/project default until overridden, and filters options to what that provider supports (while respecting managed policy ceilings and locks):
2. Provider override active with one-click reset
Once set (e.g. Codex → Supervised), a reset button lets you return to inheriting the default at any time:
3. Threads and drafts pick up the provider’s default automatically
Opening a new thread with Codex starts in Supervised; switching the model to Claude (which still inherits Full access) automatically flips permissions to Full access:
Working Reference Implementation
I built and tested a full prototype on my fork covering every surface:
What’s included in the branch
defaultRuntimeModeonProviderInstanceConfig+ sharedresolveDefaultRuntimeModeandresolveProviderSwitchRuntimeModehelpers.defaultRuntimeModeacross provider instances (without erasing the user’s stored preference on disk), clamps per-provider overrides tolimits.maxRuntimeMode, and wires resolution into MCPt3_thread_launch, server bootstrap, and session imports.ProviderInstanceCard, dynamic resolution inChatView, automatic permission switching on cross-provider model switches inuseComposerSelection, new-thread/PR-draft hooks, and multi-model fanout.SettingsProviderAccountsRouteScreen&ClaudeAccounts), provider-aware resolution innew-task-flow-provider, and live preview/application when switching providers inThreadSettingsSheet.Happy to open a PR if maintainers want to pull this in!
All reactions