Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

agent: Update shell path in system prompt to match the terminal we give it (#39344)

Ben Brandtf17096879ca0
diff --git a/crates/prompt_store/src/prompts.rs b/crates/prompt_store/src/prompts.rs
index 846da927171..e95c63b8308 100644
--- a/crates/prompt_store/src/prompts.rs
+++ b/crates/prompt_store/src/prompts.rs
@@ -14,7 +14,7 @@ use std::{
time::Duration,
};
use text::LineEnding;
-use util::{ResultExt, get_system_shell, rel_path::RelPath};
+use util::{ResultExt, get_default_system_shell, rel_path::RelPath};
use crate::UserPromptId;
@@ -43,7 +43,7 @@ impl ProjectContext {
user_rules: default_user_rules,
os: std::env::consts::OS.to_string(),
arch: std::env::consts::ARCH.to_string(),
- shell: get_system_shell(),
+ shell: get_default_system_shell(),
}
}
}