hermes - 💡(How to fix) Fix Terminal UI: input field accumulates/duplicates when terminal window loses focus (Wayland + niri + Kitty)

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…
RAW_BUFFERClick to expand / collapse

Environment - OS: Debian 13 (Trixie) - Window compositor: niri (Wayland) + DMS - Terminal: Kitty - Hermes Agent version: 0.14.0

Steps to reproduce
1. Open Hermes CLI in a Kitty window
2. Start a conversation (or just have the prompt ready)
3. Switch to another window/app (e.g., Chrome) while the Hermes terminal is still open
4. Observe: the input field area in Hermes CLI starts accumulating/adding extra lines visually (as if content is being replayed or duplicated)

Expected behavior
Hermes CLI should redraw cleanly when the window regains focus, showing only the current input state without visual duplication artifacts.

Actual behavior
Input area shows duplicate追加 lines — likely related to _OUTPUT_HISTORY replay logic not being properly suppressed or cleared on focus restoration.

Notes
- Claude Code does NOT exhibit this behavior in the same environment
- The issue appears specifically when switching away from and back to the Hermes terminal window
- Disabling/enabling repaint_delay in Kitty did not resolve it
- Running Ctrl+L (/redraw) manually clears the issue temporarily
- _SESSION_RECAP feature exists to show a summary of activity during unfocus, which may be related to the redraw logic

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