Skip to content

fix(server): Codex full-access turns refuse dangerous commands instead of asking - #756

Merged
lastobelus merged 2 commits into
lastcode/mainfrom
lastcode/codex-full-access-refuses-dangerous-commands
Nov 19, 2026
Merged

lastobelus merged 2 commits into
lastcode/mainfrom
lastcode/codex-full-access-refuses-dangerous-commands

Conversation

@lastobelus

@lastobelus lastobelus commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Since full-access Codex turns moved from approvalPolicy: "never" to a granular policy (https://redirect.github.com/pingdotgg/t3code/pull/37104), Codex asks for approval of commands it flags as dangerous, mainly a forced rm such as a trap 'rm -f …' EXIT cleanup (https://redirect.github.com/openai/codex/pull/59120). Under never those commands were refused and the agent rewrote them. Now they raise a permission card, and delegated children stall until someone notices.

In full access, the Codex adapter now declines command and file-change approval requests itself, on both the current and legacy app-server methods. The agent sees the refusal and keeps going, as it did before. A turn that sets its own approval policy keeps its prompts. MCP access prompts still reach the user, which is what pingdotgg#37104 was for. The current protocol only allows a plain decline, which Codex reports to the agent as "rejected by user". The legacy methods carry "Not permitted without approval. Use a safer approach."

Tests: a new table covers all four approval methods in full access, and fails on lastcode/main because each raises a pending request. The file-change approval path tests moved to auto-accept-edits mode, where those approvals happen. vp run check:changed origin/lastcode/main passes.

Local review: 1 round with gpt-6.1-terra (xhigh), approved.

Work by Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

…d of asking

Full-access Codex turns switched from `approvalPolicy: "never"` to a granular
policy so browser and app access prompts still reach the user
(https://redirect.github.com/pingdotgg/t3code/pull/37104). Codex asks for
approval of commands it flags as dangerous, such as a forced `rm`, under that
policy (https://redirect.github.com/openai/codex/pull/59120), where `never`
refused them. Delegated children then stopped on a permission card until
someone noticed.

In full access the adapter now declines command and file-change approval
requests itself, which restores the old refuse-and-adapt behavior. MCP access
prompts are unchanged.

Carry-Group: incubator
Carry-Observation: No upstream PR; reacts to upstream's granular full-access policy and Codex's dangerous-command prompts. Revisit if upstream changes either.

Co-Authored-By: Claude <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T22:12:13.143813Z a62de72 Manual request
ℹ️ 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.

@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: ad9f4d3011

ℹ️ 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".

…olicy

Full access refuses Codex approval requests itself only with its default
granular policy. A turn that sets its own approval policy asked for prompts,
so they still reach the user; the Codex replay fixtures cover that case.

Carry-Group: incubator

Co-Authored-By: Claude <[email protected]>
@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: a62de72de3

ℹ️ 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".

@lastobelus
lastobelus merged commit fd67aab into lastcode/main Nov 19, 2026
42 checks passed
@lastobelus
lastobelus deleted the lastcode/codex-full-access-refuses-dangerous-commands branch November 19, 2026 22:50
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