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
- Start
hermes in interactive CLI mode
- Resize the terminal window (drag to change width or height)
- 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)
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
hermesin interactive CLI modeExpected 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 --continuedo not fully resolve the issue.Notes
There is already a
_resize_clear_ghosts()patch incli.py(around line 10850) that wrapsapp._on_resizeto forceerase_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
hermesinteractive CLI (non-TUI / prompt_toolkit mode)