From f41d45ff3a6d5a59319bd8567ab65be6e7f91a52 Mon Sep 17 00:00:00 2001 From: Douwe Osinga Date: Tue, 19 May 2026 10:06:36 -0400 Subject: [PATCH] fix(cli): use plain '> ' prompt instead of goose emoji (#9305) Signed-off-by: Douwe Osinga Co-authored-by: Douwe Osinga --- crates/goose-cli/src/session/input.rs | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/crates/goose-cli/src/session/input.rs b/crates/goose-cli/src/session/input.rs index 6fd8920180..ba60ea763d 100644 --- a/crates/goose-cli/src/session/input.rs +++ b/crates/goose-cli/src/session/input.rs @@ -149,9 +149,7 @@ pub fn get_input( rustyline::EventHandler::Conditional(Box::new(CtrlCHandler::new(completion_cache))), ); - let prompt = get_input_prompt_string(); - - let input = match editor.readline(&prompt) { + let input = match editor.readline("> ") { Ok(text) => text, Err(e) => match e { rustyline::error::ReadlineError::Interrupted => return Ok(InputResult::Exit), @@ -387,24 +385,6 @@ fn parse_plan_command(input: String) -> Option { Some(InputResult::Plan(options)) } -fn get_input_prompt_string() -> String { - if is_vte_with_broken_emoji_width() { - return "> ".to_string(); - } - "🪿 ".to_string() -} - -/// VTE < 0.70 renders 🪿 as 1 cell while unicode-width counts 2, causing cursor offset. -fn is_vte_with_broken_emoji_width() -> bool { - let Ok(vte_version) = std::env::var("VTE_VERSION") else { - return false; - }; - let Ok(version) = vte_version.parse::() else { - return true; - }; - version < 7000 -} - fn print_help() { let newline_key = get_newline_key().to_ascii_uppercase(); let modes = GooseMode::VARIANTS.join(", ");