Skip to content

[Bug]: Terminal resize (SIGWINCH) duplicates status bar and clears response text #5474

@hennhen

Description

@hennhen

Bug Description

When resizing the terminal window, two things break:

  1. The CLI status bar (model name, token count, progress bar) duplicates multiple times without clearing the previous render, leaving stacked artifact lines
  2. Response text is lost — this happens both to in-progress (streaming) responses AND already-completed responses

Happens consistently in both Warp and macOS Terminal.app, confirming it's a Hermes-side issue rather than a terminal emulator issue.

Steps to Reproduce

  1. Start a conversation with Hermes in the CLI
  2. Resize the terminal window — either during a response or after one completes
  3. Observe duplicated status bar lines and cleared response text

Expected Behavior

Terminal should re-render cleanly after resize, reflowing both response text and status bar to the new terminal width.

Actual Behavior

  • Status bar renders multiple times stacked, leaving persistent artifact lines
  • Response text is cleared — affects both streaming and completed responses

Affected Component

CLI (interactive chat)

Messaging Platform (if gateway-related)

No response

Operating System

MacOS 26.3

Python Version

3.11.5

Hermes Version

v0.7.0 (2026.4.3)

Relevant Logs / Traceback

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomething 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