From 79842ccff121a295919abcfbe0bf4b94f857fc2d Mon Sep 17 00:00:00 2001 From: Q Date: Sat, 25 Apr 2026 08:46:29 +0900 Subject: [PATCH] fix: stop idle CLI redraws --- cli.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cli.py b/cli.py index 00937e9f9a..3973465d9b 100644 --- a/cli.py +++ b/cli.py @@ -10526,7 +10526,6 @@ class HermesCLI: app._on_resize = _resize_clear_ghosts def spinner_loop(): - last_idle_refresh = 0.0 while not self._should_exit: if not self._app: time.sleep(0.1) @@ -10535,10 +10534,11 @@ class HermesCLI: self._invalidate(min_interval=0.1) time.sleep(0.1) else: - now = time.monotonic() - if now - last_idle_refresh >= 1.0: - last_idle_refresh = now - self._invalidate(min_interval=1.0) + # Do not repaint the idle prompt every second. In non-full-screen + # prompt_toolkit mode, background redraws can fight tmux/Ghostty/cmux + # viewport restoration after focus changes and visually move the + # command input area. Keep idle stable; input/agent events still + # invalidate explicitly when the UI actually changes. time.sleep(0.2) spinner_thread = threading.Thread(target=spinner_loop, daemon=True)