From 271b674bf14ffd0b1f4af589c54df1b6fe7247d8 Mon Sep 17 00:00:00 2001 From: Alfredo Arenas Date: Sun, 10 May 2026 20:14:46 -0600 Subject: [PATCH] feat(cli): pass bot_name/bot_icon from config to StreamRenderer (#3650) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both StreamRenderer instantiations in the agent command (single-message mode and interactive mode) now read bot_name and bot_icon from config.agents.defaults and forward them to the renderer. This is the wiring step that makes the schema fields actually take effect at runtime. With safe defaults of "nanobot" and "🐈", existing users see no change. --- nanobot/cli/commands.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/nanobot/cli/commands.py b/nanobot/cli/commands.py index a610f256f..df3f5beaf 100644 --- a/nanobot/cli/commands.py +++ b/nanobot/cli/commands.py @@ -1061,7 +1061,11 @@ def agent( if message: # Single message mode — direct call, no bus needed async def run_once(): - renderer = StreamRenderer(render_markdown=markdown) + renderer = StreamRenderer( + render_markdown=markdown, + bot_name=config.agents.defaults.bot_name, + bot_icon=config.agents.defaults.bot_icon, + ) response = await agent_loop.process_direct( message, session_id, on_progress=_cli_progress, @@ -1175,7 +1179,11 @@ def agent( turn_done.clear() turn_response.clear() - renderer = StreamRenderer(render_markdown=markdown) + renderer = StreamRenderer( + render_markdown=markdown, + bot_name=config.agents.defaults.bot_name, + bot_icon=config.agents.defaults.bot_icon, + ) await bus.publish_inbound(InboundMessage( channel=cli_channel,