Output width remains truncated after resizing Codex CLI window back to full size
What version of Codex is running?
0.47.0
What subscription do you have?
Pro plan
Which model were you using?
gpt-5-high
What platform is your computer?
macOS
What issue are you seeing?
When the Codex CLI is producing output and I resize the terminal window to a smaller (half) width, the new output lines wrap to fit the reduced width. However, when I resize the window back to the original/full width while Codex is still outputting, the subsequent output remains constrained to the smaller width. It does not expand to fill the full width of the terminal, so the text continues to wrap at the narrower width even though the window has been restored.
What steps can reproduce the bug?
- Launch the Codex CLI and start a task that prints multiple lines of output continuously.
- While the CLI is outputting content, resize the terminal or window to approximately half of its original width.
- Notice that the new output lines adjust to the smaller width as expected.
- Without stopping the task, resize the terminal back to its original or a wider width.
- Observe that the subsequent output still uses the narrower width, even though the window has been resized back to full size.
What is the expected behavior?
After resizing the window back to its original or larger width, the Codex CLI should adjust the output to the new width. New lines of output should wrap according to the current window size, so they use the full available width rather than remaining restricted to the narrower width used during the temporary resize.
Additional information
_No response_
20 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Thanks for posting. I think this may be a duplicate of #5259. If so, let's close this one. And feel free to upvote the existing issue.
Still happening in Codex v0.75.0 in Warp terminal v0.2025.12.17.17.17.stable_02
Initial Width of Terminal
<img width="200" src="https://github.com/user-attachments/assets/b7de1bce-d533-4229-bca9-b7822ccb6634" />
Expanded Width of Terminal
Codex text has not resized according to the terminal
<img width="250" src="https://github.com/user-attachments/assets/8b8df71f-feee-4ba4-b396-ae2ee555d96d" />
Still happening in 0.77. I think this should be prioritized. It is very annoying when giving codex a chance to try out. Not a good a first impression
+1, this is extremely annoying and regularly makes me write "repeat your response"
Still happening in v0.92
This is pretty big issue for a tool built to run in the terminal
FYI - I just submitted a PR that fixes this: #11221
Can we please get this fixed? its a frequent paper-cut for me
this makes codex cli unusable lately
Same issue
+1
I can reproduce this reliably in Ghostty. The issue is not limited to width changes:
Some more data:
Example from a live repro:
```bash
stty -f /dev/ttys023 size
63 206
I found a workaround. It’s annoying, but it consistently works for me:
Switch to another agent, then switch back. Codex appears to always have at least one background agent running, and changing agents seems to force a redraw. It is the only way I can get codex to redraw without exit+resume.
_Sometimes_
Ctrl-lwill fix it, maybe.I’ve seen something similar in Claude Code, which also has gnarly TUI redraw issues: opening the full transcript view and then closing it also forces a redraw. That transcript workaround does not work in Codex, but the agent-switching workaround does.
For comparison, applications like nvim, top, etc. resize perfectly in the same environment, which removes the ever-so-slight suspicion it _could_ be a Ghostty issue (which was a very low suspicion).
EDIT: I updated to 0.130.0 and the issue persists.
The original bug described in this bug report has been fixed.
@bmizerany, if you're still seeing similar behavior, please open a new bug report and fill in all of the information request in the bug report template.
What release?
I think it was 0.129.0. Make sure you're running the latest (0.130.0 or newer).
https://github.com/openai/codex/issues/5576#issuecomment-4413645709
I just tried 131 alpha 4 (still persists as it did in 129 and 130: https://github.com/user-attachments/assets/18fd498d-f627-429d-85be-740686542f05
If you are still seeing cases where the issue persists, please create a new bug report and fill out all of the information in the bug report template including detailed repro steps.