Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Make system prompt be more explicit about root paths (#27383)
Richard Feldman4a5f89aded8a
diff --git a/assets/prompts/assistant_system_prompt.hbs b/assets/prompts/assistant_system_prompt.hbsindex ecc0dfd09b8..a377a1ae859 100644--- a/assets/prompts/assistant_system_prompt.hbs+++ b/assets/prompts/assistant_system_prompt.hbs@@ -11,7 +11,7 @@ You should only perform actions that modify the user’s system if explicitly reBe concise and direct in your responses.-The user has opened a project that contains the following root directories/files:+The user has opened a project that contains the following root directories/files. Whenever you specify a path in the project, it must be a relative path which begins with one of these root directories/files:{{#each worktrees}}- `{{root_name}}` (absolute path: `{{abs_path}}`)