Skip to content

CLI TUI renders blank lines after terminal resize #17975

@ydhwang-performars

Description

@ydhwang-performars

Bug Description

When the terminal window is resized (e.g. dragging to make it wider/narrower, or un-maximizing), the CLI TUI renders extra blank lines and the layout becomes visually corrupted. The prompt area drifts downward with ghost empty rows.

Steps to Reproduce

  1. Start hermes in interactive CLI mode
  2. Resize the terminal window (drag to change width or height)
  3. Observe blank/empty lines appearing in the TUI

Expected Behavior

The TUI should cleanly redraw after resize with no extra blank lines or visual artifacts.

Actual Behavior

Multiple blank lines appear after resize. The prompt area drifts. Ctrl+L, reset, and /exit + hermes --continue do not fully resolve the issue.

Notes

There is already a _resize_clear_ghosts() patch in cli.py (around line 10850) that wraps app._on_resize to force erase_screen() + cursor_goto(0,0) before the renderer redraw. However the bug persists -- the fix may not cover all resize scenarios (e.g. SIGWINCH-less reflows, row-count changes, or multiplexer-driven resizes).

Environment

  • OS: WSL2 Ubuntu (Windows host)
  • Terminal: Windows Terminal / WSL
  • Mode: hermes interactive CLI (non-TUI / prompt_toolkit mode)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existscomp/cliCLI entry point, hermes_cli/, setup wizardtype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions