mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-28 06:51:16 +08:00
Adds a per-prompt elapsed timer to the CLI status bar (live ⏱ while the turn runs, frozen ⏲ after completion, resets on next prompt). Fills the gap left by the KawaiiSpinner — the spinner only shows elapsed time while actively animating, so it disappears between tool calls and after the turn finishes. Status bar is always pinned, so users can glance down and see how long the current/last prompt has been running. - New instance vars: _prompt_start_time, _prompt_duration - Timer starts before agent_thread.start() and freezes once the thread has exited (both interrupt and normal-completion paths) - _format_prompt_elapsed() formats s/m/h/d with seconds visible at all scales, trailing zeros hidden on exact boundaries, negative clamp - Displayed in the wide (>=76 col) status bar as position 7, after the session duration timer - Uses width-1 glyphs (⏱/⏲, no variation selector) to stay aligned in monospace terminals
472 KiB
472 KiB