From 7bed454fdb54ec09925acc6bd6e836b332f26670 Mon Sep 17 00:00:00 2001 From: Raduan <88370223+dbraduan@users.noreply.github.com> Date: Tue, 22 Apr 2025 19:41:29 +0200 Subject: [PATCH] goose: improve message for change workdir warning (#2291) --- crates/goose-cli/src/session/builder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/goose-cli/src/session/builder.rs b/crates/goose-cli/src/session/builder.rs index 3cd8fd64..2e8769d3 100644 --- a/crates/goose-cli/src/session/builder.rs +++ b/crates/goose-cli/src/session/builder.rs @@ -97,7 +97,7 @@ pub async fn build_session(session_config: SessionBuilderConfig) -> Session { std::env::current_dir().expect("Failed to get current working directory"); if current_workdir != metadata.working_dir { // Ask user if they want to change the working directory - let change_workdir = cliclack::confirm(format!("{} The working directory of this session was set to {}. It does not match the current working directory. Would you like to change it?", style("WARNING:").yellow(), style(metadata.working_dir.display()).cyan())) + let change_workdir = cliclack::confirm(format!("{} The original working directory of this session was set to {}. Your current directory is {}. Do you want to switch back to the original working directory?", style("WARNING:").yellow(), style(metadata.working_dir.display()).cyan(), style(current_workdir.display()).cyan())) .initial_value(true) .interact().expect("Failed to get user input");