Repository navigation
Per-provider default permission mode, applied when switching models #17125
Replies: 5 comments
|
+1 for per-provider permission defaults. This hits especially hard when combining providers that have native Auto (Claude Code, Codex) with Pi: Pi delegates permission logic to user extensions, so using a custom Pi (Also related to #35610 for Pi's |
|
+1 for per-provider permission defaults. I use the T3 Code desktop app on macOS and want OpenCode to default to Full access and Claude to Auto. A shared permission default doesn’t fit this setup, so I have to select the mode manually. An optional default in Settings → Providers would solve this for me. Local server version: 0.1.10-nightly.20261116.4761. |
|
+1 for per-provider default permission modes, especially for enterprise / org-policy setups. Use case (T3 Code 0.1.10 on macOS):
Having an optional per-provider (or per-provider-instance) |
|
Note Drafted by Claude Opus 5.5 in Claude Code (via T3 Code); reviewed and posted by @JaredEzz. +1, adding Antigravity to the list of providers this affects. I want Claude on Auto and Antigravity (Gemini) on Full access; with one global default, one of them is always wrong and I have to fix the mode by hand on every thread or model switch. Small extra ask: allow the override per model as well as per provider (falling back to the provider default, then the global one), so models from the same provider can differ. The precedence proposed in #40711 seems to fit that. |
|
+1 pls, need Claude on bypass and Codex on auto |
Uh oh!
There was an error while loading. Please reload this page.
Summary
Let me set a default permission mode (runtime mode) for each provider. When I switch a thread or the composer to a model from that provider, T3 Code should switch to that mode automatically.
My case: I want Claude threads in Full access and Codex threads in Auto. Today I have to remember to change the mode by hand every time I pick a Codex model.
Current behavior (0.0.46-nightly.20261007)
defaultRuntimeMode(added after Allow configuring the default runtime mode #7028) is one setting for the whole environment. It can be overridden per project, but not per provider or model.approvalPolicy: "never"andsandboxPolicy: dangerFullAccess.supportedRuntimeModes, so the app knows which modes each provider supports. It just has no per-provider preference.Proposed behavior
Setting: add an optional
defaultRuntimeModeto each provider instance in Settings → Providers. Example:If it's unset, keep today's behavior: fall back to the project default, then the environment default.
On model switch: when the selected model moves to a different provider instance that has a
defaultRuntimeModeset, change the composer's or thread's runtime mode to that value.New threads: for a new thread, the mode should resolve in this order: provider default → project default → environment default.
Design questions
defaultRuntimeModebeat the provider default? I'd suggest the provider default wins on a model switch, and the project default applies when no provider default is set.supportsRuntimeModeSwitchInSessionis false, apply the new mode on the next session or turn, the same way a manual mode change works today.Why
Providers handle permission modes differently. With Claude, Full access is a reasonable default for me. With Codex, Full access turns off both the approval prompts and the sandbox, and Auto (on-request approvals with the auto-reviewer, workspace-write sandbox) is a better default. One global mode makes users pick between the two, or remember to flip it every time they switch models, which is easy to forget.
All reactions