text from project root codex.md gets appended into .codex/instructions.md on every session

Resolved 💬 0 comments Opened Apr 23, 2025 by Stewart86 Closed Apr 25, 2025

What version of Codex is running?

v0.1.2504221401

Which model were you using?

doesn't matter

What platform is your computer?

Linux 6.14.3-arch1-1 x86_64 unknown

What steps can reproduce the bug?

  1. have instructions.md in ~/.codex/ and open a project that contains codex.md
  2. run a few codex sessions
  3. notice that in instructions.md after --project-doc-- line, project level codex.md text will be appended into instructions.md file

What is the expected behavior?

instructions from individual project codex.md file should not be appended in to the system config file.

What do you see instead?

_No response_

Additional information

Seems like a critical bug IMO as other projects might be affected with context not relevant to the session. Also incur unnecessary cost by reading duplicated tokens context.

View original on GitHub ↗