hermes - 💡(How to fix) Fix TUI re-renders entire conversation history on terminal window resize [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
NousResearch/hermes-agent#24944Fetched 2026-05-14 03:50:24
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1subscribed ×1unsubscribed ×1
RAW_BUFFERClick to expand / collapse

Bug Description

When the iTerm2 window is resized while running the Hermes CLI (via hermes command), the TUI re-renders the entire conversation history from the beginning, causing the terminal to scroll through all previous output. This makes window resizing disruptive and can require scrolling back to find the current position.

Steps to Reproduce

  1. Open iTerm2 and run hermes to start a conversation
  2. Have a few exchanges with the agent
  3. Drag the iTerm2 window edge to resize it
  4. Observe: the terminal scrolls through all previous messages from the start of the session

Expected Behavior

On terminal resize (SIGWINCH), the TUI should adjust the visible area cleanly without re-rendering the full conversation history. The current viewport position should be preserved.

Actual Behavior

The entire conversation history is re-rendered line by line from the beginning, causing a rapid scroll through all previous messages.

Environment

  • OS: macOS (Apple Silicon)
  • Terminal: iTerm2
  • Shell: zsh
  • Hermes version: latest

Notes

  • Likely related to how prompt_toolkit handles SIGWINCH events in the Hermes TUI
  • May affect other terminal emulators as well

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING