resizing window breaks new input field background styling

Resolved 💬 4 comments Opened Oct 7, 2025 by alextes Closed Oct 10, 2025
💡 Likely answer: A maintainer (nornagon-openai, contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

codex-cli 0.45.0

Which model were you using?

gpt-5-codex

What platform is your computer?

Darwin 25.0.0 arm64 arm

What steps can reproduce the bug?

input anything with at least a handful of words.
resize the window so the line gets wrapped.
background styling broken.

i'll be the first to say this is a minor issue at best. otoh, you don't have to add background styling. if you _are_ choosing to do it, do it well.

thanks for an amazing amazing tool ❤️

<img width="941" height="898" alt="Image" src="https://github.com/user-attachments/assets/c2fce6f6-9532-43be-85ab-478504ef83b4" />

What is the expected behavior?

_No response_

What do you see instead?

_No response_

Additional information

_No response_

View original on GitHub ↗

4 Comments

nornagon-openai contributor · 10 months ago

looks like this is only an issue when you enter a prompt that's exactly the width of the terminal at the time you submit it, in which case we do not emit a clear-to-EOL sequence at the end of the line.

alextes · 10 months ago

happens for me with any length. perhaps related to my terminal then? kitty. i didn't try in others but can reproduce.

!Image

nornagon-openai contributor · 10 months ago

ah, yeah, that looks to me like a kitty bug (or ... behavior? 😬). iterm2 and Terminal.app both handle this correctly. ghostty and xterm.js seem to be broken too.

<sub>also, hello fellow aoeuhtns enjoyer!</sub>

alextes · 10 months ago

clear, closing then, ty @nornagon-openai .

<sub>i was wondering whether anyone would notice i was banging the homerow ha</sub>