From ae34872f73a99d63b58ec5d91e0c3d9a154c8ffd Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Thu, 19 Sep 2024 17:49:22 -0600 Subject: [PATCH] Fix prompt reloading in dev mode (#18095) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I think I nulled out the repo path to test the non dev mode case and then forgot to reenable it 🤦‍♂️ . Release Notes: - N/A --- crates/assistant/src/prompts.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/assistant/src/prompts.rs b/crates/assistant/src/prompts.rs index 7d99a70d14..3b9f75bac9 100644 --- a/crates/assistant/src/prompts.rs +++ b/crates/assistant/src/prompts.rs @@ -90,10 +90,9 @@ impl PromptBuilder { /// and application context. /// * `handlebars` - An `Arc>` for registering and updating templates. fn watch_fs_for_template_overrides( - mut params: PromptLoadingParams, + params: PromptLoadingParams, handlebars: Arc>>, ) { - params.repo_path = None; let templates_dir = paths::prompt_overrides_dir(params.repo_path.as_deref()); params.cx.background_executor() .spawn(async move {