-
Notifications
You must be signed in to change notification settings - Fork 12.3k
AGENTS.md is silently ignored when invalid utf8 characters are present #23223
Copy link
Copy link
Closed
Labels
CLIIssues related to the Codex CLIIssues related to the Codex CLIbugSomething isn't workingSomething isn't workingconfigIssues involving config.toml, config keys, config merging, or config updatesIssues involving config.toml, config keys, config merging, or config updatescontextIssues related to context management (including compaction)Issues related to context management (including compaction)windows-osIssues related to Codex on Windows systemsIssues related to Codex on Windows systems
Metadata
Metadata
Assignees
Labels
CLIIssues related to the Codex CLIIssues related to the Codex CLIbugSomething isn't workingSomething isn't workingconfigIssues involving config.toml, config keys, config merging, or config updatesIssues involving config.toml, config keys, config merging, or config updatescontextIssues related to context management (including compaction)Issues related to context management (including compaction)windows-osIssues related to Codex on Windows systemsIssues related to Codex on Windows systems
Type
Fields
Give feedbackNo fields configured for issues without a type.
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' foundWhat issue are you seeing?
c:\Users\USERNAME\.codex\AGENTS.mdis not injected into context after I accidentally put invalid utf8 characters into the text there.What steps can reproduce the bug?
Edit the file with wrong encoding, add some quotes that read as ? when opened back in utf8.
Uploaded thread: 019e38be-0085-7450-9591-5828b2035e64
What is the expected behavior?
c:\Users\USERNAME\.codex\AGENTS.mdis 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.