fix(cli): add Automation field and success message to session show rich output (#1548) #1566
@@ -313,9 +313,10 @@ def show(
|
||||
f"[bold]Namespace:[/bold] {session.namespace}\n"
|
||||
f"[bold]Messages:[/bold] {session.message_count}\n"
|
||||
f"[bold]Created:[/bold] {session.created_at.strftime('%Y-%m-%d %H:%M')}\n"
|
||||
f"[bold]Updated:[/bold] {session.updated_at.strftime('%Y-%m-%d %H:%M')}"
|
||||
f"[bold]Updated:[/bold] {session.updated_at.strftime('%Y-%m-%d %H:%M')}\n"
|
||||
f"[bold]Automation:[/bold] {session.automation_profile or '(none)'}"
|
||||
)
|
||||
console.print(Panel(details, title="Session Details", expand=False))
|
||||
console.print(Panel(details, title="Session Summary", expand=False))
|
||||
|
||||
# Recent messages
|
||||
if session.messages:
|
||||
@@ -371,6 +372,10 @@ def show(
|
||||
)
|
||||
console.print(Panel(budget_text, title="Cost Budget", expand=False))
|
||||
|
||||
console.print("[green bold]✓ OK[/green bold] Session details loaded")
|
||||
|
||||
console.print("[green bold]✓ OK[/green bold] Session details loaded")
|
||||
|
||||
except SessionNotFoundError as exc:
|
||||
console.print(f"[red]Session not found:[/red] {session_id}")
|
||||
raise typer.Exit(1) from exc
|
||||
|
||||
Reference in New Issue
Block a user