Skip to content

Terminal resize causes status bar duplication and blank line flooding on macOS #19280

@tzh7505-png

Description

@tzh7505-png
Environment:
- OS: macOS (Intel, 10.15.7)
- Hermes: v0.12.0 (2026.4.30)
- Python: 3.11.15
- Terminal: macOS Terminal.app

Steps to reproduce:
1. Start hermes in Terminal.app
2. Resize the terminal window by any method — mouse drag, Command+=, or Command+Shift+=

Actual behavior:
- The status bar line duplicates itself
- Dozens of blank lines flood the terminal
- The input area shifts down repeatedly
- The UI becomes unusable until the session is restarted with /clear

Expected behavior:
- Terminal content reflows smoothly on resize
- No duplication or blank lines

Technical note:
Likely a prompt_toolkit SIGWINCH handler issue — the layout invalidation during resize may not be atomic, causing rendering races. Suggested fix: ensure app.invalidate() is called and layout cache is cleared atomically on SIGWINCH.

Severity:
Cosmetic but impacts every resize operation, which is high-frequency on macOS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existscomp/cliCLI entry point, hermes_cli/, setup wizardcomp/tuiTerminal UI (ui-tui/ + tui_gateway/)type/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions