From 33930d1265496027e9a73b9ec1b3528df3f93bda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B6=94=E7=86=99?= Date: Wed, 11 Feb 2026 10:39:35 +0800 Subject: [PATCH] feat(cli): revert panel removal (keep frame), preserve input rewrite --- nanobot/cli/commands.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/nanobot/cli/commands.py b/nanobot/cli/commands.py index 95aaeb4..d8e48e1 100644 --- a/nanobot/cli/commands.py +++ b/nanobot/cli/commands.py @@ -98,13 +98,19 @@ def _init_prompt_session() -> None: def _print_agent_response(response: str, render_markdown: bool) -> None: - """Render assistant response with clean, copy-friendly header.""" + """Render assistant response with consistent terminal styling.""" content = response or "" body = Markdown(content) if render_markdown else Text(content) console.print() - # Use a simple header instead of a Panel box, making it easier to copy text - console.print(f"{__logo__} [bold cyan]nanobot[/bold cyan]") - console.print(body) + console.print( + Panel( + body, + title=f"{__logo__} nanobot", + title_align="left", + border_style="cyan", + padding=(0, 1), + ) + ) console.print()