From e9528d55393464d02228c1f42ac564db95bc2080 Mon Sep 17 00:00:00 2001 From: Douwe Osinga Date: Wed, 11 Mar 2026 13:04:57 -0400 Subject: [PATCH] Simplify and make it not break on linux (#7813) Co-authored-by: Douwe Osinga --- crates/goose-cli/src/session/input.rs | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/crates/goose-cli/src/session/input.rs b/crates/goose-cli/src/session/input.rs index 956fb678..7265cc4d 100644 --- a/crates/goose-cli/src/session/input.rs +++ b/crates/goose-cli/src/session/input.rs @@ -400,12 +400,7 @@ fn parse_plan_command(input: String) -> Option { } fn get_input_prompt_string() -> String { - let goose = "🪿"; - if cfg!(target_os = "windows") { - format!("{goose} ") - } else { - format!("{} ", console::style(goose)) - } + "🪿 ".to_string() } fn print_help() { @@ -692,20 +687,4 @@ mod tests { let result = handle_slash_command("/recipe /path/to/file.txt"); assert!(matches!(result, Some(InputResult::Retry))); } - - #[test] - fn test_get_input_prompt_string() { - let prompt = get_input_prompt_string(); - - // Prompt should always end with a space - assert!(prompt.ends_with(' ')); - - // Prompt should contain the goose emoji - assert!(prompt.contains("🪿")); - - #[cfg(target_os = "windows")] - { - assert_eq!(prompt, "🪿 "); - } - } }