Codex silently fails loading global AGENTS.md file when encountering encoding issues.

Open 💬 3 comments Opened Mar 14, 2026 by nhauber99

What version of Codex CLI is running?

codex-cli 0.114.0

What subscription do you have?

Business

Which model were you using?

gpt-5.4

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

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

PowerShell

What issue are you seeing?

Codex silently fails reading the global AGENTS.md file if encountering encoding issues, see https://github.com/openai/codex/issues/7582 for the more general issue.

What steps can reproduce the bug?

Save AGENTS.md in codex home with unsupported encoding / characters.

What is the expected behavior?

A warning message if loading failed. Otherwise it's incredibly frustrating to troubleshoot and even notice if one change in the AGENTS.md file causes it to not be loaded at all.

Additional information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗