Repository navigation
Add Auto review permission mode backed by the CLIs' own reviewers - #1624
Conversation
Claude runs with --permission-mode auto; Codex app-server sends approvalsReviewer auto_review and each finished review lands in the thread as an event line. Providers without a native reviewer snap Auto to Ask first (or Full access where nothing asks). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ade24cd3d9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "default", | ||
| "acceptEdits", | ||
| "plan", | ||
| "auto", |
There was a problem hiding this comment.
Gate Auto mode on Claude model and account support
Adding auto to this provider-wide list makes it selectable for every Claude model and account, including the bundled Haiku 4.5 option. Anthropic documents that Auto is restricted by plan and model in Claude Code's availability requirements, and the canonical CLI report for Haiku 4.5 shows --permission-mode auto being silently downgraded, sometimes to bypass permissions. In that scenario Solenta continues displaying “Auto review” while the promised reviewer may not be active and commands may run without oversight; gate the option using model/runtime capability information or verify the effective mode reported by the CLI before treating it as Auto.
Useful? React with 👍 / 👎.
What
Adds a fifth permission mode, Auto review (
auto). It sits between Accept edits and Full access. In this mode the CLI's own model reviewer approves routine actions, and anything it won't approve still goes to the user.--permission-mode auto.approvalsReviewer: "auto_review"on thread start/resume and on everyturn/start. Every other mode sends"user". Each finisheditem/autoApprovalReview/completednotification becomes one event line in the thread, for example:Auto review approved `npm test` (low risk): user asked for tests. Reviews still in progress are skipped.autoto Ask first. If a provider never asks, it snaps to Full access instead. This keeps Auto from quietly turning into full access on a CLI that can ask.Why
Ask first interrupts for every gated action, and Full access gives up all oversight. Auto review hands routine approvals to the CLI's built-in reviewer, so the user only sees the requests it won't approve.
Plumbing
autois added to every permission-mode list and type:providers.js,services-shared.js,store-normalize.js(agent-profile validation and its error message),src/shared/ipc.ts, andsrc/format.ts(label "Auto review", plus the renderer-side snap).autois allowed only at thepairautonomy rung, next to Full access.PERMISSION_RANKnow putsautoaboveacceptEditsand belowbypassPermissions. An agent-spawned worker therefore can't reach Auto review under a lead that is in a lower mode.Tests
codex-appserver.test.js: covers the auto-review note mapping and the in-progress skip, checks thatapprovalsRevieweris"user"by default, and checks that it is"auto_review"on resume and turn whenpermissionMode: "auto".permission-modes.test.js:autosnaps todefaulton opencode and tobypassPermissionson grok.test/format.test.tscovers the renderer-side changes.🤖 Generated with Claude Code