Skip to content

Output width remains truncated after resizing Codex CLI window back to full size #5576

@BobbyWang0120

Description

@BobbyWang0120

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?

  1. Launch the Codex CLI and start a task that prints multiple lines of output continuously.
  2. While the CLI is outputting content, resize the terminal or window to approximately half of its original width.
  3. Notice that the new output lines adjust to the smaller width as expected.
  4. Without stopping the task, resize the terminal back to its original or a wider width.
  5. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIIssues 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