codex - 💡(How to fix) Fix AGENTS.md is not injected when invalid utf8 characters are present but no error shown

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…

Error Message

error: unexpected argument '--json' found

Code Example

error: unexpected argument '--json' found
RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

0.130.0

What subscription do you have?

Pro

What platform is your computer?

Windows

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

Windows Terminal (PowerShell)

Codex doctor report

error: unexpected argument '--json' found

What issue are you seeing?

c:\Users\USERNAME\.codex\AGENTS.md is not injected into context after I accidentally put invalid utf8 characters into the text there.

What steps can reproduce the bug?

Uploaded thread: 019e38be-0085-7450-9591-5828b2035e64

What is the expected behavior?

c:\Users\USERNAME\.codex\AGENTS.md is injected into context, merged with project level AGENTS.md if exists. If invalid characters prevent this from working, a clear error message should show it.

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

codex - 💡(How to fix) Fix AGENTS.md is not injected when invalid utf8 characters are present but no error shown