Skip to content

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

Closed

Description

@Stewart86

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.

Activity

  1. added
    bug
    on Apr 23, 2025
  2. added a commit that references this issue on Apr 25, 2025
    c38c2a5
  3. added a commit that references this issue on Jun 26, 2025
    6171bea
  4. added a commit that references this issue on Sep 9, 2025
    ee3c8cf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions