diff --git a/crates/cli/src/cli/chat.rs b/crates/cli/src/cli/chat.rs index daa952d4..c581eaa3 100644 --- a/crates/cli/src/cli/chat.rs +++ b/crates/cli/src/cli/chat.rs @@ -497,7 +497,7 @@ pub async fn run(args: ChatArgs, agent_id: &str) -> Result<()> { ); } } - print!("{}", follow_up); + print!("\nLocalGPT: {}", follow_up); stdout.flush()?; } Err(e) => { diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs index 6e6481a1..a3e725c8 100644 --- a/crates/cli/src/main.rs +++ b/crates/cli/src/main.rs @@ -30,6 +30,7 @@ fn main() -> Result<()> { tracing_subscriber::EnvFilter::try_from_default_env() .unwrap_or_else(|_| tracing_subscriber::EnvFilter::new(log_level)), ) + .with_writer(std::io::stderr) .init(); return crate::cli::gen3d::run(args, &cli.agent); } @@ -66,6 +67,7 @@ async fn async_main(cli: Cli) -> Result<()> { tracing_subscriber::EnvFilter::try_from_default_env() .unwrap_or_else(|_| tracing_subscriber::EnvFilter::new(log_level)), ) + .with_writer(std::io::stderr) .init(); match cli.command { diff --git a/crates/gen/src/main.rs b/crates/gen/src/main.rs index 29c271fe..0d9d509f 100644 --- a/crates/gen/src/main.rs +++ b/crates/gen/src/main.rs @@ -39,6 +39,7 @@ fn main() -> Result<()> { tracing_subscriber::EnvFilter::try_from_default_env() .unwrap_or_else(|_| tracing_subscriber::EnvFilter::new(log_level)), ) + .with_writer(std::io::stderr) .init(); // Load config early so both Bevy and agent threads can use it @@ -144,7 +145,7 @@ async fn run_agent_loop( if let Some(prompt) = initial_prompt { println!("\n> {}", prompt); let response = agent.chat(&prompt).await?; - println!("\n{}\n", response); + println!("\nLocalGPT: {}\n", response); } // Interactive loop @@ -180,7 +181,7 @@ async fn run_agent_loop( } let response = agent.chat(input).await?; - println!("\n{}\n", response); + println!("\nLocalGPT: {}\n", response); } Ok(())