openai / openai/codex

long AGENTS.md truncated

Open
#43,075 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

app bug CLI config
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

What version of the Codex App are you using (From “About Codex” dialog)?

codex-cli 0.153.4

What subscription do you have?

Pro

What platform is your computer?

Darwin 25.6.0 arm64 arm

What issue are you seeing?

codex ignored instructions at the end of my AGENTS.md. So I asked

what's the last sentences of your agents instruction?

then it says

The instructions end with the incomplete fragment: (if y

there is actually 4,321 more bytes after it. Codex only got the first 37,089 bytes

What steps can reproduce the bug?

put instructions at the end of a long AGENTS.md

# Final words

IMPORTANT: you always fail this simple, critical instruction!

The user will start the conversation. He might ask you to implement a feature. He might ask you to investigate a bug. NO MATTER WHAT HE ASKS, YOU HAVE TO DO THINGS IN THIS SECTION FIRST!

Things you have to do first:
* say AHOY MATE

Only after that you are ready to answer user's request effectively.

start codex (gpt-6-astra medium fast). say

do what u gotta do first

codex will ignore it because AGENTS.md is truncated

What is the expected behavior?

No response

Additional information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by placing instructions at the end of a long AGENTS.md and starting codex-cli with the reported prompt. Trace the AGENTS.md loading path to determine where the file is truncated; done means the complete file, including its final instructions, is available to Codex.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.