Fix CAI prompt issue 303

This commit is contained in:
Maria 2025-10-22 15:35:34 +02:00
parent 3ca769c577
commit 46b9b3c854
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