hotfix: use same executable path for dev system

This commit is contained in:
Bradley Axen
2025-01-07 13:24:48 -08:00
parent d52e2e0113
commit da387444b3
+7 -1
View File
@@ -55,7 +55,13 @@ pub async fn build_session<'a>(
// TODO use systems from the profile
// TODO once the client/server for MCP has stabilized, we should probably add InProcess transport to each
// and avoid spawning here. But it is at least included in the CLI for portability
let config = SystemConfig::stdio("goose").with_args(vec!["mcp", "developer"]);
let config = SystemConfig::stdio(
std::env::current_exe()
.expect("should find the current executable")
.to_str()
.expect("should resolve executable to string path"),
)
.with_args(vec!["mcp", "developer"]);
agent
.add_system(config)
.await