mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-02 02:01:47 +00:00
Merge 79842ccff1 into 13038dc747
This commit is contained in:
commit
a005f191dc
1 changed files with 5 additions and 5 deletions
10
cli.py
10
cli.py
|
|
@ -10526,7 +10526,6 @@ class HermesCLI:
|
||||||
app._on_resize = _resize_clear_ghosts
|
app._on_resize = _resize_clear_ghosts
|
||||||
|
|
||||||
def spinner_loop():
|
def spinner_loop():
|
||||||
last_idle_refresh = 0.0
|
|
||||||
while not self._should_exit:
|
while not self._should_exit:
|
||||||
if not self._app:
|
if not self._app:
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
|
|
@ -10535,10 +10534,11 @@ class HermesCLI:
|
||||||
self._invalidate(min_interval=0.1)
|
self._invalidate(min_interval=0.1)
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
else:
|
else:
|
||||||
now = time.monotonic()
|
# Do not repaint the idle prompt every second. In non-full-screen
|
||||||
if now - last_idle_refresh >= 1.0:
|
# prompt_toolkit mode, background redraws can fight tmux/Ghostty/cmux
|
||||||
last_idle_refresh = now
|
# viewport restoration after focus changes and visually move the
|
||||||
self._invalidate(min_interval=1.0)
|
# command input area. Keep idle stable; input/agent events still
|
||||||
|
# invalidate explicitly when the UI actually changes.
|
||||||
time.sleep(0.2)
|
time.sleep(0.2)
|
||||||
|
|
||||||
spinner_thread = threading.Thread(target=spinner_loop, daemon=True)
|
spinner_thread = threading.Thread(target=spinner_loop, daemon=True)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue