From 1bdc0522d7254b01a1370d5d6471677bd45c8207 Mon Sep 17 00:00:00 2001 From: Mery-Sanz <78554738+Mery-Sanz@users.noreply.github.com> Date: Wed, 22 Oct 2025 16:08:38 +0200 Subject: [PATCH] Fix CAI prompt issue 303 (#306) Co-authored-by: Maria --- src/cai/cli.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cai/cli.py b/src/cai/cli.py index 2859bb5a..86960a61 100644 --- a/src/cai/cli.py +++ b/src/cai/cli.py @@ -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