Fix CAI prompt issue 303 (#306)

Co-authored-by: Maria <maria@aliasrobotics.com>
This commit is contained in:
Mery-Sanz 2025-10-22 16:08:38 +02:00 committed by GitHub
parent 3ca769c577
commit 1bdc0522d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -709,6 +709,8 @@ def run_cai_cli(
# No agent selection menu - just run all agents
except KeyboardInterrupt:
# Print newline to ensure clean prompt display after interrupt
print()
def format_time(seconds):
mins, secs = divmod(int(seconds), 60)
@ -1699,6 +1701,9 @@ def run_cai_cli(
start_idle_timer()
except KeyboardInterrupt:
# Print newline to ensure clean prompt display after interrupt
print()
# Clean up any active streaming panels
try:
from cai.util import cleanup_all_streaming_resources