fix(cli): add Settings and Actor Details panels to session create rich output (#1547) #1567

Merged
freemo merged 1 commits from fix/uat-session-create-rich-output-panels into master 2026-04-02 21:46:15 +00:00
+30 -1
View File
@@ -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: