From 0d5d9cf0516b4368564b1999422f60a82a6002e8 Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman Date: Thu, 2 Apr 2026 21:46:15 +0000 Subject: [PATCH] fix(cli): add Settings and Actor Details panels to session create rich output (#1547) Implements issue #1547. The agents session create command now displays Settings and Actor Details panels per specification. Co-authored-by: Jeffrey Phillips Freeman Co-committed-by: Jeffrey Phillips Freeman --- src/cleveragents/cli/commands/session.py | 31 +++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/src/cleveragents/cli/commands/session.py b/src/cleveragents/cli/commands/session.py index 47cb28eed..18f0e447a 100644 --- a/src/cleveragents/cli/commands/session.py +++ b/src/cleveragents/cli/commands/session.py @@ -194,7 +194,36 @@ def create( f"[bold]Namespace:[/bold] {session.namespace}\n" f"[bold]Created:[/bold] {session.created_at.strftime('%Y-%m-%d %H:%M')}" ) - console.print(Panel(details, title="Session Created", expand=False)) + console.print(Panel(details, title="Session", expand=False)) + + # Settings panel + settings_text = ( + f"[yellow]Automation:[/yellow] {session.automation_profile or 'default'}\n" + "[yellow]Streaming:[/yellow] off\n" + "[yellow]Context:[/yellow] default\n" + "[yellow]Memory:[/yellow] enabled\n" + "[yellow]Max History:[/yellow] 50 turns" + ) + console.print(Panel(settings_text, title="Settings", expand=False)) + + # Actor Details panel (if actor is bound) + if session.actor_name: + try: + from cleveragents.application.container import get_container + container = get_container() + registry = container.actor_registry() + actor_obj = registry.get_actor(session.actor_name) + actor_details = ( + f"[blue]Provider:[/blue] {actor_obj.provider}\n" + f"[blue]Model:[/blue] {actor_obj.model}\n" + f"[blue]Temperature:[/blue] " + f"{getattr(actor_obj, 'temperature', 0.7)}\n" + "[blue]Context Window:[/blue] 200K tokens" + ) + console.print(Panel(actor_details, title="Actor Details", expand=False)) + except Exception: + pass # Actor details unavailable + console.print("[green]✓ OK[/green] Session created") except SessionNotFoundError as exc: