Skip to content

Add Auto review permission mode backed by the CLIs' own reviewers - #1624

Merged
currentbits merged 2 commits into
mainfrom
coder/llm-judge-auto-approval-for-permission-p-3be316
Oct 13, 2026
Merged

currentbits merged 2 commits into
mainfrom
coder/llm-judge-auto-approval-for-permission-p-3be316

Conversation

@currentbits

Copy link
Copy Markdown
Owner

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.

  • Claude runs with --permission-mode auto.
  • Codex app-server sends approvalsReviewer: "auto_review" on thread start/resume and on every turn/start. Every other mode sends "user". Each finished item/autoApprovalReview/completed notification 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.
  • Providers without a native reviewer snap auto to 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

  • auto is 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, and src/format.ts (label "Auto review", plus the renderer-side snap).
  • Teach mode: auto is allowed only at the pair autonomy rung, next to Full access.
  • Worker privilege narrowing (P1: Bind the caller's thread id at the MCP transport (closes thread_stop/thread_archive approval bypass) #1425): PERMISSION_RANK now puts auto above acceptEdits and below bypassPermissions. 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 that approvalsReviewer is "user" by default, and checks that it is "auto_review" on resume and turn when permissionMode: "auto".
  • permission-modes.test.js: auto snaps to default on opencode and to bypassPermissions on grok.
  • test/format.test.ts covers the renderer-side changes.

🤖 Generated with Claude Code

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]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T14:13:36.606362Z ade24cd PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread electron/providers.js
"default",
"acceptEdits",
"plan",
"auto",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

@currentbits
currentbits merged commit aa258e6 into main Oct 13, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant