fix: keep CLI idle timer ticking (#45592)

This commit is contained in:
Teknium 2026-06-13 05:55:04 -07:00 committed by GitHub
parent aa53a78d67
commit 6724daa2c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

7
cli.py
View file

@ -12798,6 +12798,13 @@ class HermesCLI(CLIAgentSetupMixin, CLICommandsMixin):
style=style,
full_screen=False,
mouse_support=False,
# The status bar contains wall-clock read-outs (live prompt elapsed
# and idle-since-last-turn). Once a turn finishes there may be no
# further events to invalidate the app, so prompt_toolkit would keep
# rendering the first post-turn value (usually ``✓ 0s``) forever.
# A low-rate refresh keeps the clock honest without reintroducing a
# custom repaint thread or touching conversation state.
refresh_interval=1.0,
# Erase the live bottom chrome (status bar, input box, separator
# rules) on exit instead of freezing a final copy into scrollback.
# Without this, prompt_toolkit's render_as_done teardown repaints