Skip to content

fix(server): Full access Codex no longer asks before dangerous commands - #1341

Merged
Jacksondr5 merged 1 commit into
j5/mainfrom
j5code/council-build-approval
Dec 2, 2026
Merged

Jacksondr5 merged 1 commit into
j5/mainfrom
j5code/council-build-approval

Conversation

@Jacksondr5

Copy link
Copy Markdown
Owner

Problem

Codex agents with Full access stop and ask a person before any command that contains rm -f or rm -rf. The agent waits until someone answers. On one server, all 13 Codex command approvals since Nov 27 were this, and one reviewer waited about 25 hours.

Before v0.1.11, Full access sent Codex the approval policy never, so Codex refused these commands without asking. v0.1.11 (#1205) brought in pingdotgg#37104, which sends a granular policy so browser and app prompts still work. Under that policy, Codex asks before a command it considers dangerous, even with sandbox approvals turned off.

What changed

This cherry-picks upstream's fix, pingdotgg#40773 (f29c824614c), with no J5 edits. In Full access, the Codex adapter now accepts these command approvals. It still asks about managed network access, and it does not apply when a thread sets its own approval or sandbox policy, as read-only personas do.

Tradeoff: Full access Codex agents now run forced deletes with no check. Until now, Codex refused them or asked first. Jackson approved this on Dec 1, 2026 (EST).

Proof: upstream's new test fails on j5/main without the adapter change, because the adapter raises a command request. It passes with the change. CodexAdapterV2.test.ts passes in full (209 tests), and vp run check:changed passes.

Live testing

Not live-tested. The adapter now sends the same accept reply that a person's Approve click sends, and Codex 0.172 ran the command after that reply on a live server. The tests cover when the adapter sends it.

Upstream impact

All three files are upstream's, and the change is copied from upstream unedited. The next advance (v0.1.12) brings in the same change.

  • apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts
  • apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.test.ts
  • docs/user/permission-modes.md: upstream's own note about this behavior

There is no new FORK.md case or register entry, because J5 follows upstream here. #1150 did the same.

Checklist

  • One concern: the description has no "also"
  • Tests cover the changed behavior (backend changes ship with focused tests)
  • UI changes: none
  • Live testing: the section above says what ran live and what did not
  • Upstream-owned files: not recorded in FORK.md, because this is upstream's change unedited
  • Upstream product: no register entry, because this follows upstream
  • Surfaces: server only, Codex only; every client shows fewer approval prompts
  • Docs: upstream's note came with the cherry-pick; J5's docs need no change

Claude Opus 5.5 in Claude Code

🤖 Generated with Claude Code

@vercel

vercel Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
j5-code Ready Ready Preview Dec 2, 2026 4:31am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Dec 2, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 51 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between e091b8e and 82a531a.

Files selected for processing: 3

  • apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.test.ts
  • apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts
  • docs/user/permission-modes.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions github-actions Bot added the vouch:trusted Author is trusted by repo permissions or the VOUCHED list. label Dec 2, 2026
@github-actions github-actions Bot added the size:S 10-29 effective changed lines (test files excluded in mixed PRs). label Dec 2, 2026
@Jacksondr5
Jacksondr5 merged commit bf9988e into j5/main Dec 2, 2026
39 checks passed
@Jacksondr5
Jacksondr5 deleted the j5code/council-build-approval branch December 2, 2026 04:57

This branch was successfully deployed

1 active deployment
Preview — 82a531a2 Deployed Dec 2, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 effective changed lines (test files excluded in mixed PRs). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants