codex - 💡(How to fix) Fix codex cli repeatedly violates AGENTS.md approval workflow [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#18367Fetched 2026-04-18 05:55:09
View on GitHub
Comments
2
Participants
3
Timeline
9
Reactions
0
Author
Timeline (top)
labeled ×4commented ×2unlabeled ×2closed ×1
RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

codex-cli 0.121.0

What subscription do you have?

Plus

Which model were you using?

gpt-5.3-codex

What platform is your computer?

Linux 6.8.0-107-generic x86_64 x86_64

What terminal emulator and version are you using (if applicable)?

SSH via MobaXterm

What issue are you seeing?

repeatedly violates AGENTS.md approval workflow. Specifically, It applies code changes before presenting diffs for approval, despite explicit project rules. This is happening almost daily and breaks required review control

What steps can reproduce the bug?

Uploaded thread: 019cd64d-b8bf-7c13-ad6e-d260f84109be

What is the expected behavior?

Codex receives explicit approvals after providing diffs to modify code

Additional information

No response

extent analysis

TL;DR

Review and update the approval workflow configuration in AGENTS.md to ensure Codex CLI adheres to the required review control.

Guidance

  • Verify that the approval workflow in AGENTS.md is correctly configured to require explicit approvals before applying code changes.
  • Check the Codex CLI documentation for any specific settings or flags that may need to be set to enforce the approval workflow.
  • Investigate the uploaded thread (019cd64d-b8bf-7c13-ad6e-d260f84109be) to understand the sequence of events leading to the violation of the approval workflow.
  • Consider setting up additional logging or monitoring to detect and prevent similar violations in the future.

Notes

The issue seems to be related to the configuration of the approval workflow in AGENTS.md, but without more information about the specific settings and configurations, it's difficult to provide a more detailed solution.

Recommendation

Apply workaround: Review and update the approval workflow configuration in AGENTS.md to ensure Codex CLI adheres to the required review control, as this is the most likely cause of the issue and can be addressed without waiting for a potential fix in the Codex CLI.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING