From 1e4d874341e75bd97365348be58d1215f4757347 Mon Sep 17 00:00:00 2001 From: Michael Neale Date: Sat, 27 Sep 2025 07:09:17 +1000 Subject: [PATCH] can tell the system what shell it is using (#4807) --- crates/goose-mcp/src/developer/rmcp_developer.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/crates/goose-mcp/src/developer/rmcp_developer.rs b/crates/goose-mcp/src/developer/rmcp_developer.rs index 7169116e..7715a0f1 100644 --- a/crates/goose-mcp/src/developer/rmcp_developer.rs +++ b/crates/goose-mcp/src/developer/rmcp_developer.rs @@ -214,7 +214,10 @@ impl ServerHandler for DeveloperServer { cwd=cwd.to_string_lossy(), container_info=if in_container { "container: true" } else { "" }, }, - _ => formatdoc! {r#" + _ => { + let shell_info = std::env::var("SHELL").unwrap_or_else(|_| "/bin/sh".to_string()); + + formatdoc! {r#" The developer extension gives you the capabilities to edit code files and run shell commands, and can be used to solve a wide range of problems. @@ -231,12 +234,15 @@ impl ServerHandler for DeveloperServer { operating system: {os} current directory: {cwd} + shell: {shell} {container_info} "#, os=os, cwd=cwd.to_string_lossy(), + shell=shell_info, container_info=if in_container { "container: true" } else { "" }, - }, + } + } }; let hints_filenames: Vec = std::env::var("CONTEXT_FILE_NAMES")