Skip to content

Your lightweight open-source personal agent.

fix: reduce CLI streaming flicker and show model in welcome line

Xubin Ren89bf5d29d165
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