fix(cli): improve fallback message for failed or unknown commands

- Replaced misleading "Unknown command" message with "Command failed or unknown"
This commit is contained in:
Fan Huang 2025-07-14 18:17:42 +00:00
parent 67e041c610
commit 62474048bb
1 changed files with 1 additions and 1 deletions

View File

@ -1290,7 +1290,7 @@ def run_cai_cli(
# If command wasn't recognized, show error (skip for /shell or /s)
if command not in ("/shell", "/s"):
console.print(f"[red]Unknown command: {command}[/red]")
console.print(f"[red]Command failed or unknown: {command}[/red]")
continue
from rich.text import Text