Codex CLI treating interal tool calls as MCP tool calls - requiring truncation and reading 200 lines maximum in local files
What version of Codex is running?
0.57.0 & 0.58.0
What subscription do you have?
Pro
Which model were you using?
gpt-5-codex-high
What platform is your computer?
Windows 11 - running codex through WSLUbuntu-22.04
What issue are you seeing?
When writing a prompt to read a specified local file for context or otherwise, I will receive a message that the file is over 10kb and that it will need to truncate the message and that it will read only 200 lines.
What steps can reproduce the bug?
Produced bug: Read docs/foo.md so you understand the goal, scope, DoD, and contracts. Then do action... etc
Skips error but proceeds: Read section X in docs/foo.md and do action... etc
The second prompt will "work" because it will instead only read the first 200 lines after finding the title/section within the file. It still performs terribly as it doesn't read the full file for context.
What is the expected behavior?
As this is a local file and not asking codex to use an MCP tool call, it should read the whole file for context.
Additional information
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗