Repository navigation
fix(server): Codex full-access turns refuse dangerous commands instead of asking - #756
Conversation
…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]>
Codex Review Summary: ✅ CompletedThis 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. |
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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]>
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
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 forcedrmsuch as atrap 'rm -f …' EXITcleanup (https://redirect.github.com/openai/codex/pull/59120). Underneverthose 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/mainbecause 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/mainpasses.Local review: 1 round with gpt-6.1-terra (xhigh), approved.
Work by Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code