From 89bf5d29d1653bff8377db5771ba108981f8a3a3 Mon Sep 17 00:00:00 2001 From: Xubin Ren Date: Tue, 14 Apr 2026 13:38:06 +0000 Subject: [PATCH] fix: reduce CLI streaming flicker and show model in welcome line --- nanobot/cli/commands.py | 2 +- nanobot/cli/stream.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nanobot/cli/commands.py b/nanobot/cli/commands.py index 953e8b1f9..81aeb7d0d 100644 --- a/nanobot/cli/commands.py +++ b/nanobot/cli/commands.py @@ -1007,7 +1007,7 @@ def agent( # Interactive mode — route through bus like other channels from nanobot.bus.events import InboundMessage _init_prompt_session() - console.print(f"{__logo__} Interactive mode (type [bold]exit[/bold] or [bold]Ctrl+C[/bold] to quit)\n") + console.print(f"{__logo__} Interactive mode [bold blue]({config.agents.defaults.model})[/bold blue] — type [bold]exit[/bold] or [bold]Ctrl+C[/bold] to quit\n") if ":" in session_id: cli_channel, cli_chat_id = session_id.split(":", 1) diff --git a/nanobot/cli/stream.py b/nanobot/cli/stream.py index 8151e3ddc..9454edac6 100644 --- a/nanobot/cli/stream.py +++ b/nanobot/cli/stream.py @@ -102,7 +102,7 @@ class StreamRenderer: self._live = Live(self._render(), console=c, auto_refresh=False) self._live.start() now = time.monotonic() - if "\n" in delta or (now - self._t) > 0.05: + if (now - self._t) > 0.15: self._live.update(self._render()) self._live.refresh() self._t = now