Repository navigation
fix(settings): permission menus match the chat permission picker - #36104
Conversation
The per-agent permission menu (Settings > Agents and Source Control actions) and the 'Agents without Approve for me' toggle rendered their own plain-text items. They now reuse the chat picker's items: the same icons, Full access warning colour, per-agent descriptions and width, with the agent's own settings after a separator.
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryThe PR makes settings permission menus look like the chat picker.
No actionable issues were found. Checks were based on source and test inspection; tests and visual checks were not run. Reviews (1) · Last reviewed commit: "Merge main before final permission menu ..." · Reviewed by Greptile |
Walkthrough
Priority: Merge Risk:
|
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

Minor · Normalize the shared choice before rendering the… · AgentPermissionChoiceControls.tsx:110-135
src/renderer/src/components/settings/AgentPermissionChoiceControls.tsx:110-135
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winNormalize the shared choice before rendering the menu.
The global permission path can assign
askoraccept-editsto all agents.withoutAutoChoicethen contains that value, but this menu offers onlyfull-accessandown. The trigger therefore displays an option that the menu cannot select.Suggested fix
+ const offeredWithoutAutoChoice = + withoutAutoChoice === 'full-access' || withoutAutoChoice === 'own' + ? withoutAutoChoice + : null; + - {withoutAutoChoice === null ? ( + {offeredWithoutAutoChoice === null ? ( ... - choice={withoutAutoChoice} + choice={offeredWithoutAutoChoice} ... - value={withoutAutoChoice ?? ''} + value={offeredWithoutAutoChoice ?? ''}

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
28d05e94-4159-455a-91d4-41e8746cf88a
Files selected for processing: 13-
src/renderer/src/components/settings/HostAgentLaunchSettings.test.tsxsrc/renderer/src/i18n/en-runtime-required.jsonsrc/renderer/src/i18n/locales/de.jsonsrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/pt.jsonsrc/renderer/src/i18n/locales/ru.jsonsrc/renderer/src/i18n/locales/tr.jsonsrc/renderer/src/i18n/locales/zh-Hant.jsonsrc/renderer/src/i18n/locales/zh.json
Files with no reviewable changes: 12-
- src/renderer/src/i18n/en-runtime-required.json
- src/renderer/src/i18n/locales/zh.json
- src/renderer/src/i18n/locales/pt.json
- src/renderer/src/i18n/locales/de.json
- src/renderer/src/i18n/locales/zh-Hant.json
- src/renderer/src/i18n/locales/fr.json
- src/renderer/src/i18n/locales/ja.json
- src/renderer/src/i18n/locales/ru.json
- src/renderer/src/i18n/locales/tr.json
- src/renderer/src/i18n/locales/en.json
- src/renderer/src/i18n/locales/es.json
- src/renderer/src/i18n/locales/ko.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.
-
|
Permission controls outside chats used several layouts, so the same choice looked different in Settings and Source Control. All editable desktop permission menus now reuse the chat picker’s icons, descriptions, Full access warning colour and menu width, including older paired hosts. The review fixed the omitted older-host selectors and matching labels while preserving their manual/auto/yolo values, supported options, custom arguments and mutation callbacks. Two source-review rounds finished with no remaining findings; final architecture, performance/readiness and bounded CI-correction reviews passed. CI cleanup fixed a test type annotation and removed unused translation keys. No deferred code findings remain. Verified 145 targeted tests across seven files; the two affected files (70 tests) passed again after CI cleanup. Final CI: PASS. Screenshot-only QA covered the live Settings all-agent, per-agent and non-Auto menus plus Source Control action menu. Older-host controls used production-component fixtures in both themes, as authorized; no real older paired host was provisioned. No agents or actions were executed. Real config hashes stayed unchanged; app and fixture server are stopped. Screenshots are from Intended differences: Settings keeps its outline triggers and existing Own/inheritance choices; legacy capabilities stay unchanged; read-only summaries, custom reset actions and the phone’s native drawer keep their existing roles. For Brennan’s review
Settings: all agents Settings: per-agent inheritance Settings: agents without Approve for me Source Control action permissions Older paired host: global menu (fixture) Older paired host: Other agents (fixture) Older paired host: per-agent menu (fixture) |







Permission controls outside chat used several layouts, so the same choice looked different in Settings and Source Control.
All editable desktop permission menus now use the chat picker’s icons, descriptions, Full access warning colour and width. This includes per-agent Settings rows, Source Control actions, the “Agents without Approve for me” control, and the global/per-agent controls for older paired hosts. Own settings appears after a separator; mixed settings show “Mixed”.
Older paired hosts display the same permission names while retaining their existing manual/auto/yolo values and callbacks. Supported choices, disabled options, custom arguments, inheritance and save/failure behavior remain unchanged. Read-only summaries and exception shortcuts keep their existing roles; mobile keeps its native permission drawer.
Overlaps #34728, which moves the per-agent menu items; whichever lands second must carry both changes.
Validation: 145 tests passed across seven named renderer/persistence files, including both selections and a rejected save through the old and new secondary picker paths, older-host capability restrictions, keyboard access, existing saved-argument conversion, and Source Control save/discard. Mandatory pre-commit passed. Final CI and branch screenshots are recorded in the review-loop status comment.