Skip to content

Commit

Permalink
Merge pull request #1764 from codestoryai/fetures/pass-repo-name-prop…
Browse files Browse the repository at this point in the history
…erly

[sidecar] pass repo name properly
  • Loading branch information
theskcd authored Jan 20, 2025
2 parents b31cc84 + 73719b7 commit 2d45fdd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sidecar/src/agentic/tool/session/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,7 @@ impl SessionService {
running_in_editor: bool,
semantic_search: bool,
mcts_log_directory: Option<String>,
repo_name: Option<String>,
message_properties: SymbolEventMessageProperties,
) -> Result<(), SymbolError> {
println!("session_service::tool_use_agentic::start");
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions sidecar/src/bin/agent_bin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions sidecar/src/bin/agent_bin_reasoning.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions sidecar/src/webserver/agentic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2d45fdd

Please sign in to comment.