Skip to content

Window Resize on Coding Agents (eg. Claude Code or Gemini CLI) #405

@roromedia

Description

@roromedia

Describe the bug
Whenever you resize the window to a smaller size than the initial loading size, the terminal doesn't correctly reflow. This leads to double-lining and endless scrolling while typing. As soon as you enlarge the window over the initial size, this stops, but the prompt box isn't resized to the max-width of the window.

To Reproduce
Just resize window as mentioned above.

Expected behavior
It should reflow the contents and always max-width the prompt block. Terminals like Rio or Alacritty are doing this perfectly.

Desktop (please complete the following information):

  • OS: MacOS Tahoe 26.1

Additional context
I tried to fork SwiftTerm and implement various reflow mechanisms but couldn't make it work. Seems there are more substantial or underlying changes needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions