From 73719b7170bacc44dfab7f96d5b4b9881bdc6c46 Mon Sep 17 00:00:00 2001 From: skcd Date: Mon, 20 Jan 2025 18:18:39 +0000 Subject: [PATCH] [sidecar] pass repo name properly --- sidecar/src/agentic/tool/session/service.rs | 3 ++- sidecar/src/bin/agent_bin.rs | 1 + sidecar/src/bin/agent_bin_reasoning.rs | 1 + sidecar/src/webserver/agentic.rs | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sidecar/src/agentic/tool/session/service.rs b/sidecar/src/agentic/tool/session/service.rs index 4f2179c3..ee5c8b5a 100644 --- a/sidecar/src/agentic/tool/session/service.rs +++ b/sidecar/src/agentic/tool/session/service.rs @@ -545,6 +545,7 @@ impl SessionService { running_in_editor: bool, semantic_search: bool, mcts_log_directory: Option, + repo_name: Option, message_properties: SymbolEventMessageProperties, ) -> Result<(), SymbolError> { println!("session_service::tool_use_agentic::start"); @@ -608,7 +609,7 @@ impl SessionService { // we should ideally get this information from the vscode-server side setting std::env::consts::OS.to_owned(), shell.to_owned(), - ToolUseAgentProperties::new(running_in_editor, None, aide_rules), + ToolUseAgentProperties::new(running_in_editor, repo_name, aide_rules), ); session = session diff --git a/sidecar/src/bin/agent_bin.rs b/sidecar/src/bin/agent_bin.rs index d2f62436..0470985b 100644 --- a/sidecar/src/bin/agent_bin.rs +++ b/sidecar/src/bin/agent_bin.rs @@ -198,6 +198,7 @@ Your thinking should be thorough and so it's fine if it's very long."#, false, false, Some(args.log_directory.clone()), + Some(args.repo_name.clone()), message_properties, ) .await; diff --git a/sidecar/src/bin/agent_bin_reasoning.rs b/sidecar/src/bin/agent_bin_reasoning.rs index e204f210..eba52d7e 100644 --- a/sidecar/src/bin/agent_bin_reasoning.rs +++ b/sidecar/src/bin/agent_bin_reasoning.rs @@ -198,6 +198,7 @@ Your thinking should be thorough and so it's fine if it's very long."#, false, false, Some(args.log_directory.clone()), + Some(args.repo_name.clone()), message_properties, ) .await; diff --git a/sidecar/src/webserver/agentic.rs b/sidecar/src/webserver/agentic.rs index 98edb6b9..44e7e863 100644 --- a/sidecar/src/webserver/agentic.rs +++ b/sidecar/src/webserver/agentic.rs @@ -1515,6 +1515,7 @@ pub async fn agent_tool_use( true, // we are running inside the editor over here semantic_search, mcts_log_directory, + None, message_properties, ) .await;