Repository navigation
Let chats follow the agent permission setting - #32334
Merged
Merged
Conversation
…flags into Arguments Terminals and new chats read one stored choice per agent (Use the agent's own settings, Ask for approval, Accept edits, Approve for me, Full access). Orca adds the flag at launch; Arguments hold only the user's own text. A one-time move lifts Orca's flags out of saved Arguments. Older clients still see and write the flag as part of Arguments; the host translates.
…keep primitives unstyled
…rmission-one-setting # Conflicts: # src/renderer/src/web/preload-api/web-preferences-store.ts
…rmission-one-setting # Conflicts: # src/shared/global-settings-base.ts
…rmission-one-setting
brennanb2025
marked this pull request as ready for review
October 23, 2026 10:41
Contributor
There was a problem hiding this comment.
🧹 Nitpick comments: 1
tests/e2e/structured-agent-session-launch-admission.unit.test.ts: 1
353-447:Trivial · Maintainability & Code Quality · Heavy lift Assert the user-visible result through the DOM.
This test is under
tests/e2e/**, but it validates hook return values instead of the rendered Send control and notice. The test can pass while component wiring or text rendering is broken. Set up state throughwindow.__storeand assert the DOM withgetByRoleand visibility matchers, or move pure hook coverage to a renderer unit test.As per coding guidelines, E2E tests must assert user-visible behavior through the DOM.
Source: Coding guidelines

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:
eb849cce-8ed3-46b1-84af-6a65b926ba05
Files selected for processing: 1-
tests/e2e/structured-agent-session-launch-admission.unit.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
-
This comment has been minimized.
This comment has been minimized.
This was referenced Oct 25, 2026
This was referenced Oct 26, 2026
smwbev
added a commit
to smwbev/orca
that referenced
this pull request
Oct 26, 2026
338 commits landed on main between dbde821 and fd25eb0. All seven catalogs and en-runtime-required.json conflicted, so they are taken from main and the prune is recomputed in one pass: the previous 1,633 keys plus 4, none left the set. stablyai#32971 dropped the readers of settings.agents.loadingHost and permissionChoiceDescription, stablyai#32334 the reader of permissionEachOwnDescription, and stablyai#31859 the reader of auto.hooks.useIpcEvents.56d3ec4203. The two permission descriptions exist only in en.json, so en.json sheds 1,637 and the other six catalogs 1,635. en.json goes from 17,143 entries to 15,506; en-runtime-required.json keeps 643 of them. catalog-nested-settings.test.ts listed loadingHost among the agent settings it checks across catalogs; with its last reader gone, the key comes off that list and the test checks the other ten. native-chat-shared-copy-matches-catalog.test.ts merged cleanly again and still differs from main by exactly the branch's edit.
3 of 5 tasks
9 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The problem
Orca had two separate permission settings. Terminals used the agent's permission from Settings → Agents, or the agent's own config when you picked "Use 's own settings". New chats ignored that and used a different default from Settings → Chat. So a chat could run with different permissions from your terminal, and permissions you had set in Claude's or Codex's own config (for example Claude's
defaultMode) never applied in chats.What changes for you
How it works
--permission-mode default, which overrides the user's own config. Orca sets the SDK'sresolvePermissionModeInClioption so Claude decides from its settings files instead. That option works but isn't in the SDK's published types, and an upstream request asks Anthropic to make it public: SDK sends--permission-mode defaultwhenpermissionModeis omitted, overriding the user'spermissions.defaultModeanthropics/claude-agent-sdk-typescript#519. If a future SDK drops it, chats fall back to Ask for approval (never more access than chosen), and a test that runs the real SDK fails.config.toml. Reopening a chat keeps the mode that chat already had.Older apps and servers
Differences from the common pattern
The common pattern always tells the agent which mode to use, so the menu just shows that choice. Here, "own settings" lets the agent decide, so the menu shows what the agent reports, names a mode outside the list, and stays disabled until the mode is known. These are intended.
Not in this PR
Testing
12c40f3ba84; later commits only change how the menu displays the mode, tests and comments.b2a3c656d52.29e45f21763, including the adapted permission persistence/reload test with every assertion retained. It includes main27e7f8fd6d6, the catalog correction and the test-only dropdown adaptation. All eight real-Claude config cases also passed on this head: user/project/local precedence, no default, bypass, explicit modes, per-chat isolation/reopen and disabled-before-report, with real replies and screenshots in the review status. The earlier lifecycle and phone evidence carries.Tracked in #31315. Author: @BrennanKB5.