bug: resizing terminal leads to bad artifacts
Resolved 💬 4 comments Opened Apr 18, 2025 by sunflower-of-parchman Closed Aug 7, 2025
💡 Likely answer: A maintainer (tibo-openai, collaborator)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
v0.1.2504172351
Which model were you using?
o4-mini
What platform is your computer?
Darwin 24.5.0 arm64 arm
What steps can reproduce the bug?
When resizing terminal, this happens:
<img width="790" alt="Image" src="https://github.com/user-attachments/assets/5bfc9783-9470-4744-b325-4a3250db19ed" />
What is the expected behavior?
I imagine that I could resize terminal without the "staircasing" effect in the prompt area?
What do you see instead?
Cascading "send message" input field rendering on resizing.
Additional information
I hope this is helpful, this is my first time submitting an issue...
Just want to say thank you for all of the hard work to make Codex CLI, it is truly liberating for an artist like me.
Warmly,
Michael
4 Comments
Will accept a PR for a fix, likely just need to refresh when the terminal is resized.
Hello,
I tried for about 8 hours to figure out a fix, but am still unsuccessful. Resizing UI for terminal gets slippery fast, and Ink is waaaay out of my skillset. Was super fun to give it a shot and I learned a ton.
From what I found, there are a few known issues with reprinting without artifacts in Ink. (I have noticed a similar issue with a few other terminal apps that I've used, specifically in training models on my laptop.)
The app "needs a reason to re-express itself at the new size". The artifacts are the reprints of the UI at every "flicker" of the resizing window. I tried hooks and a couple other things, but needed to put up the white flag...would have been so cool to help.
I am a musician, so had some off time off stage while performing this weekend to try and use codex cli to solve "it's own ui expression" along with o3 connected to my terminals.
So close...yet, so very far.
Warmly,
Michael
I can reproduce the issue when maximizing/restoring the terminal window:
!Image
Thank you for the feedback, Michael! Please try the latest version of Codex CLI to see if the issue persists. If it does, we'd appreciate a report on the
codex-rs/implementation. Your support means a lot to us!