Expose per-role (worker vs orchestrator) permission mode in Project Settings, not just one shared value
Problem
Project Settings has exactly one shared "Permission Mode" control (PermissionModeSelect in frontend/src/renderer/components/ProjectSettingsForm.tsx), which writes only into the project's top-level agentConfig.permissions. It's positioned next to the orchestrator agent picker, which reads as "the orchestrator's setting" but actually applies identically to every worker too. There's no way to give workers a different (looser or stricter) permission level than the orchestrator through the UI.
This is a UI gap, not a backend one — confirmed by code trace, not assumption:
backend/internal/session_manager/manager.go'seffectiveAgentConfig(kind, cfg)already merges the sharedcfg.AgentConfigwith a role-specific override (cfg.Worker.AgentConfig/cfg.Orchestrator.AgentConfig), andPermissionsis one of the fields that overrides cleanly when set.domain.RoleOverride.AgentConfig.Permissionsis validated today (projectconfig_test.go:{"bad role agent config", ProjectConfig{Worker: RoleOverride{AgentConfig: AgentConfig{Permissions: "nope"}}}, true}), andProjectConfig.Worker/.Orchestratormarshal directly viajson:"worker,omitempty"/json:"orchestrator,omitempty"— no separate DTO stripping the field.- The frontend's own
buildRoleAgentConfighelper (used forconfig.worker.agentConfig/config.orchestrator.agentConfig) only ever setsmodel/mode— neverpermissions— so the working backend field is simply never populated from the settings form.
Confidence: High that this is purely a frontend gap; a small addition to ProjectSettingsForm.tsx (a second PermissionModeSelect per role, wired through buildRoleAgentConfig) should be sufficient with no backend/DTO changes needed.
Real-world motivating case
Hit this directly: a project with the orchestrator on Claude Code and the worker on Codex, one shared "Accept edits" permission level. Assumed both roles had equivalent effective permission — they didn't, because the same domain-level policy maps to very different actual CLI behavior per harness (backend/pkg/agentruntime/command.go):
// Claude Code
case PermissionAcceptEdits: return []string{"--permission-mode", "acceptEdits"}
// Codex
case PermissionAcceptEdits: return []string{"--ask-for-approval", "on-request"}
Claude Code's acceptEdits is fairly permissive; Codex's on-request means Codex decides for itself when to prompt, so it kept asking. This makes the missing per-role control worse than it might look in the abstract: mixing harnesses across orchestrator/worker (an expected, supported AO configuration) turns one shared slider into genuinely inconsistent real behavior between roles, with no way to compensate short of hand-editing the project config via a raw API call.
Ask
Add a second permission-mode control for the worker role (or make the existing one explicitly role-aware), writing into worker.agentConfig.permissions the same way buildRoleAgentConfig already does for model/mode.
Filing this to gauge interest — curious whether other users have hit the same "workers won't stop asking for permission even though I set it to max" confusion, since the root cause (one shared control, harness-dependent real behavior) isn't obvious from the UI alone.
Related
- #2195 — broader "give workers a full per-role environment profile" RFC (MCP, plugins, system prompt), whose own side-note already flags that per-role
model/permissionsare "wired in the Go domain and API schema but onlyagentis exposed per-role in the settings UI." That issue explicitly defers UI work to a follow-up and is additionally gated on resolving #2844's naked-by-default MCP/plugins rollout question. This issue is scoped to just the permissions-UI slice, which has no such rollout blocker and looks independently shippable. - #3385 / PR #3386 — the same "wired per-role in the backend, not exposed in the UI" pattern, already solved for model selection specifically. This issue asks for the same treatment for permissions.
Thanks for contributing to Agent Orchestrator.
This issue is being picked up by the current external contributor on-call pair:
- @illegalcall
- @somewherelostt
If someone is already working on this, please continue as usual. The on-call pair is added for visibility, tracking, and support, not to take over the work. If you need help with review, direction, reproduction, or next steps, please tag @illegalcall and @somewherelostt here.
For faster context or live questions, you can also join the AO Discord.
Join the session here: https://discord.gg/H6ZDcUXmq
Come by if you want to see what is being built, ask questions, or just hang around with the community.
Closing as implemented on current main by merged PR #5075. Project Settings now keeps distinct workerPermissions and orchestratorPermissions, renders a permission selector for each role, and persists each through buildRoleAgentConfig into the corresponding role-specific agentConfig.permissions.