From 6724daa2c2f1ca6693c6a47b589d61bc30f5d390 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Sat, 13 Jun 2026 05:55:04 -0700 Subject: [PATCH] fix: keep CLI idle timer ticking (#45592) --- cli.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cli.py b/cli.py index 7b26ccadf4e..2fecdd0fb23 100644 --- a/cli.py +++ b/cli.py @@ -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