Skip to content

Chat layout does not resize correctly after exiting split-screen mode #14323

@rayanweragala

Description

@rayanweragala

What version of Codex CLI is running?

codex-cli 0.114.0

What subscription do you have?

ChatGPT Plus

Which model were you using?

gpt-5.4 medium

What platform is your computer?

Linux 6.14.0-33-generic x86_64 x86_64

What terminal emulator and version are you using (if applicable)?

Terminator and GNOME Terminal

What issue are you seeing?

When the Codex chat window is used in the terminal and the window is resized, the layout of the chat window does not refresh correctly.

When the terminal window is resized to be smaller (for example, if the window is split into two panes in the Terminator terminal), the chat window will automatically resize to the smaller layout. However, if the terminal window is then resized to be full width, the existing chat messages will remain in the smaller layout and will not expand to fit the full window.

No errors are displayed. This appears to be a layout refresh issue.

What steps can reproduce the bug?

  1. Open Codex chat in a terminal.
  2. Change the width of the terminal window to a smaller size.
  3. The Codex chat UI has automatically adapted to the new width.
  4. Change the width of the terminal window back to its original size.

Result:
Older messages in the Codex chat are still rendered according to the new width.
New messages may be correctly rendered, but old messages are still compressed.

What is the expected behavior?

When the terminal window is resized to a larger width, it is expected that the chat layout would reflow and increase in size to accommodate the space.

The previously rendered messages should dynamically change their width instead of retaining the small layout.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLITUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions