Repository navigation
Picking the all-agents permission keeps agents set separately - #33018
Conversation
|
Picking the all-agents permission used to erase choices set separately. It now keeps them and shows one toast with their modes and “Use {Mode}” to make the eligible listed agents follow the default. Each successful pick replaces or dismisses the previous toast. Older-server replies can show “{Agent} now follows {Mode}” alongside choices still kept. Full review, the first-hand reference comparison and bounded acceptance of the landed chat behavior and old-client keep contract are complete on Intended: the toast lists only separate choices differing from the default; equal choices keep their Settings marker. Choices saved for agents without Auto outlive Auto. Concurrent edits to the same agent retain ordinary per-agent save order. #32334 has landed: Settings → Chat links to Agents, Own supplies no explicit chat mode, and old Chat dropdown writes now keep separate choices through the shared save mapping. Older v1.4.238–240 apps retain their stale reset wording against newer servers; that limitation was ruled explicitly. Verification:
The one Settings screenshot/action run passed on For Brennan’s review: Code: global keep/Auto rule, local owner action, retained and vanished notice sets. |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the
Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review.
|
There was a problem hiding this comment.
Actionable comments posted: 2

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:
1acbdadd-d923-45fa-8011-d2f78c2a082f
Files selected for processing: 22-
src/renderer/src/components/native-chat/NativeChatPermissionModePicker.test.tsxsrc/renderer/src/components/native-chat/NativeChatPermissionModePicker.tsxsrc/renderer/src/components/settings/AgentCatalogRow.tsxsrc/renderer/src/components/settings/AgentLaunchDefaultsEditor.tsxsrc/renderer/src/components/settings/AgentLaunchSettingsCatalog.tsxsrc/renderer/src/components/settings/AgentLaunchSettingsSection.test.tsxsrc/renderer/src/components/settings/AgentLaunchSettingsSection.tsxsrc/renderer/src/components/settings/AgentPermissionChoiceControls.tsxsrc/renderer/src/components/settings/AgentsPane.test.tsxsrc/renderer/src/components/settings/HostAgentLaunchSettings.test.tsxsrc/renderer/src/components/settings/HostAgentLaunchSettings.tsxsrc/renderer/src/components/settings/agent-permission-conversion-persistence.test.tsxsrc/renderer/src/components/settings/agent-permission-override-notice.tsxsrc/renderer/src/components/settings/permission-notice-test-fixture.tsxsrc/renderer/src/components/settings/settings-persistence-test-fixture.tssrc/renderer/src/components/ui/textarea.tsxsrc/renderer/src/i18n/en-runtime-required.jsonsrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/store/slices/settings.tssrc/renderer/src/store/slices/worktree-visibility-settings-write.tssrc/shared/tui-agent-permission-choice.test.tssrc/shared/tui-agent-permission-choice.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
-



The problem
Picking a permission for all agents erased choices you had set separately for individual agents. Changing the default could therefore change more agents than you expected.
What changes for you
How it works
The toast is built from the settings returned by the computer saving them. Before changing each listed agent, the button checks that computer's current choice again. It uses the existing per-agent save and preserves other agents' choices. Concurrent edits to the same agent keep the existing save order; this is not an all-or-nothing group action.
Auto also keeps choices already set separately. For an agent without Auto that was following the all-agents setting, Orca saves the mode it was using. Those saved choices outlive Auto: leaving Auto does not remove them, and a later pick can offer “Use {Mode}” for them.
Older apps and servers
An older paired server may still reset a separate choice. The toast then says “{Agent} now follows {Mode}” alongside any agents that still use a different setting. Only those remaining agents get the “Use {Mode}” action.
Older apps v1.4.238–240 still show their old reset wording against a newer server, even though the server keeps the separate choices. This stale copy is an accepted limitation.
Differences from the common pattern
Intended: the toast lists only separate choices that differ from the all-agents choice. An agent set separately to the same mode keeps its marker in Settings but does not appear in the toast. Auto's saved choices also remain until you change them or make them follow all agents.
Not in this PR
#32334 has landed: Settings → Chat links to Settings → Agents, new chats follow each agent's permission, and an agent using its own setting supplies no mode. Its in-chat menu offers concrete modes. This PR keeps that behavior and makes an older app's Chat permission write keep choices set separately too.
There is no Undo action. Deleting the permission pill does not show this toast.
Testing
d0bcef2f278a. The latest commit,93b6183da851, automatically merges exact main5a4dd3004885, including fix(ci): repair main's line limits and a stale test import #33675’s repair. It needed no manual resolution and preserves the reviewed behavior.93b6183da851: 24 successful checks and 19 applicable skips, including static analysis/typechecking, selected Node 24 tests, both packaging jobs and the required aggregate. The single watcher exited 0; no failed job was retried.c9ba44fbe755. Later Settings save changes have deterministic regression coverage; the main merges preserve those captured flows. No new QA was needed for this merge.