diff --git a/crates/gyandoot-agent/src/agent_loop.rs b/crates/gyandoot-agent/src/agent_loop.rs index 171c048..97f7b7d 100644 --- a/crates/gyandoot-agent/src/agent_loop.rs +++ b/crates/gyandoot-agent/src/agent_loop.rs @@ -545,7 +545,7 @@ impl AgentLoop { /// Display output to stdout with GyanDoot prefix. fn display_output(&self, output: &str) { println!( - "\n{bold}{green}G{reset}> {output}", + "\n{bold}{green}G{reset}> {output}\n", bold = cli_color::BOLD, green = cli_color::GREEN, reset = cli_color::RESET, @@ -598,10 +598,12 @@ impl AgentLoop { use std::io::Write; use tokio::io::AsyncBufReadExt; - // Show input prompt + // Show input prompt with leading blank line for spacing if atty::is(atty::Stream::Stdin) { + // Small extra delay ensures spinner \r is fully cleared + tokio::time::sleep(std::time::Duration::from_millis(30)).await; print!( - "{bold}{cyan}»{reset} ", + "\n{bold}{cyan}»{reset} ", bold = cli_color::BOLD, cyan = cli_color::BRIGHT_CYAN, reset = cli_color::RESET,