fix(codex): default app-server approvals to on-request#68721
Conversation
Greptile SummaryThis PR changes the default Confidence Score: 5/5Safe to merge — the change is minimal, all layers (runtime, schema, docs, tests) are updated consistently, and explicit operator overrides remain intact. The only finding is a P2 doc clarity nit (example snippet shows the default value rather than an actual override). No logic errors or security regressions introduced. docs/plugins/codex-harness.md — minor doc example clarity issue only.
|
4b8633e to
ddbde20
Compare
ddbde20 to
ce39150
Compare
ce39150 to
ea7299c
Compare
|
Landed via rebase. Thanks @Lucenx9.\n\nSource head: ea7299c\nLanded on main: 6c67339\n\nVerified:\n- pnpm check\n- pnpm check:test-types\n- pnpm test extensions/codex/src/app-server/config.test.ts extensions/codex/src/app-server/run-attempt.test.ts\n- GitHub checks green after rerunning a wedged check-test-types runner\n\nLive tests were attempted separately; failures were in unrelated live provider/auth/model-profile lanes, not this Codex app-server change. |
Summary
approvalPolicy: "never".on-request, kept explicit operator overrides intact, and updated tests plus plugin docs to match the secure-by-default behavior.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Root Cause (if applicable)
resolveAppServerApprovalPolicy()defaulted to"never", which suppressed approval requests by default.Regression Test Plan (if applicable)
extensions/codex/src/app-server/config.test.ts,extensions/codex/src/app-server/run-attempt.test.tsapprovalPolicy: "on-request"; explicit overrides still pass through unchanged.User-visible / Behavior Changes
Diagram (if applicable)
Security Impact (required)
Yes/No) NoYes/No) NoYes/No) NoYes/No) YesYes/No) NoYes, explain risk + mitigation: the default native action surface is now narrower because the harness requests approvals unless an operator explicitly opts out.Repro + Verification
Environment
OPENCLAW_CODEX_APP_SERVER_APPROVAL_POLICYoverrideSteps
Expected
approvalPolicy: "on-request", while explicit overrides still pass through.Actual
approvalPolicy: "never".Evidence
Human Verification (required)
pnpm checkthrough the commit hook.Review Conversations
Compatibility / Migration
Yes/No) YesYes/No) NoYes/No) NoOPENCLAW_CODEX_APP_SERVER_APPROVAL_POLICY=neverif you intentionally want the previous approval-free default.Risks and Mitigations
AI Assistance