From fe3e4c44306d73b4b65359b9814f2fe442ef6fcb Mon Sep 17 00:00:00 2001 From: luijait Date: Thu, 8 May 2025 12:49:15 +0200 Subject: [PATCH] Adjust rich text --- src/cai/cli.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/cai/cli.py b/src/cai/cli.py index 32e2f891..637f5015 100644 --- a/src/cai/cli.py +++ b/src/cai/cli.py @@ -189,11 +189,6 @@ def run_cai_cli(starting_agent, context_variables=None, stream=False, max_turns= # Initialize session logger and display the filename session_logger = get_session_recorder() - # Use rich Text instead of wasabi color() for styling with underline - from rich.text import Text - log_text = Text(f"\nLog file: {session_logger.filename}", style="yellow underline") - console.print(log_text) - # Display banner display_banner(console) display_quick_guide(console) @@ -371,7 +366,9 @@ def run_cai_cli(starting_agent, context_variables=None, stream=False, max_turns= if command not in ("/shell", "/s"): console.print(f"[red]Unknown command: {command}[/red]") continue - + from rich.text import Text + log_text = Text(f"Log file: {session_logger.filename}", style="yellow on black") + console.print(log_text) # Process the conversation with the agent if stream: async def process_streamed_response():