Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions crates/goose-cli/src/session/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,16 @@ pub fn get_input(
rustyline::EventHandler::Conditional(Box::new(CtrlCHandler)),
);

let prompt = format!("{} ", console::style("( O)>").cyan().bold());

// On Windows, we need to be careful with ANSI codes and cursor positioning
// Using a simpler prompt format to avoid cursor shift issues
let prompt = if cfg!(target_os = "windows") {
// For Windows, use a simpler prompt without bold styling which can cause issues
format!("{} ", console::style("( O)>").cyan())
} else {
// For other platforms, keep the original styling
format!("{} ", console::style("( O)>").cyan().bold())
};

let input = match editor.readline(&prompt) {
Ok(text) => text,
Err(e) => match e {
Expand Down
Loading