From 9e26d6bbf983390cd2567959f79e1301804dc30f Mon Sep 17 00:00:00 2001 From: "Dhanji R. Prasanna" Date: Mon, 12 Jan 2026 11:39:20 +0530 Subject: [PATCH] Fix black box artifact in context thinning status line Add ANSI clear-to-end-of-line escape sequence (\x1b[K]) after the reset code in the context thinning animation. This prevents leftover background color artifacts when the carriage return overwrites the line during the flash animation. --- crates/g3-cli/src/ui_writer_impl.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/g3-cli/src/ui_writer_impl.rs b/crates/g3-cli/src/ui_writer_impl.rs index b5caa39..c2fe358 100644 --- a/crates/g3-cli/src/ui_writer_impl.rs +++ b/crates/g3-cli/src/ui_writer_impl.rs @@ -70,13 +70,13 @@ impl UiWriter for ConsoleUiWriter { // Quick flash animation for frame in &frames { - print!("\r{} ✨ {} ✨\x1b[0m", frame, message); + print!("\r{} ✨ {} ✨\x1b[0m\x1b[K", frame, message); let _ = io::stdout().flush(); std::thread::sleep(std::time::Duration::from_millis(80)); } // Final display with bright cyan and sparkle emojis - print!("\r\x1b[1;96m✨ {} ✨\x1b[0m", message); + print!("\r\x1b[1;96m✨ {} ✨\x1b[0m\x1b[K", message); println!(); // Add a subtle "success" indicator line