feat(cli): revert panel removal (keep frame), preserve input rewrite

This commit is contained in:
张涔熙 2026-02-11 10:39:35 +08:00
parent 3561b6a63d
commit 33930d1265

View File

@ -98,13 +98,19 @@ def _init_prompt_session() -> None:
def _print_agent_response(response: str, render_markdown: bool) -> 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 "" content = response or ""
body = Markdown(content) if render_markdown else Text(content) body = Markdown(content) if render_markdown else Text(content)
console.print() console.print()
# Use a simple header instead of a Panel box, making it easier to copy text console.print(
console.print(f"{__logo__} [bold cyan]nanobot[/bold cyan]") Panel(
console.print(body) body,
title=f"{__logo__} nanobot",
title_align="left",
border_style="cyan",
padding=(0, 1),
)
)
console.print() console.print()