bug: Output truncated: too many lines or bytes
Resolved 💬 2 comments Opened Apr 22, 2025 by hfabio Closed Aug 7, 2025
💡 Likely answer: A maintainer (christophkogler, contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
0.1.2504211509
Which model were you using?
gemini-1.5-pro
What platform is your computer?
Linux 5.15.167.4-microsoft-standard-WSL2 x86_64 x86_64
What steps can reproduce the bug?
I'm using Ubuntu 20.04 over WSL on Windows 11.
When I use gemini-1.5-pro, and I ask to read a markdown file to create the described project in it, it fails with the message:
[Output truncated: too many lines or bytes]
This is the terminal screenshot (I've omitted the filename, but it is a regular filename)
What is the expected behavior?
Reading the file, sending it to the provider to process and then taking some action locally.
What do you see instead?
_No response_
Additional information
the message:
[Output truncated: too many lines or bytes]
and it stops running
2 Comments
Some recent changes made this behavior slightly less unpleasant, but the truncation limits are still quite bad.
Until #575 gets pushed through to make it variable through the config, you can try using a series of 250-line
tails.Thank you for the feedback! Please try using the latest version of Codex CLI, as we've been working on improvements and fixes. If the issue persists, let us know. You can also try the native/Rust implementation of Codex CLI for potentially better performance and stability.