Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
ep: Update teacher prompt to avoid undoing user edits (#47313)
Oleksiy Syvokon851ab2996e0f
diff --git a/crates/edit_prediction_cli/src/teacher.prompt.md b/crates/edit_prediction_cli/src/teacher.prompt.mdindex 11650f47446..ef3f64168f0 100644--- a/crates/edit_prediction_cli/src/teacher.prompt.md+++ b/crates/edit_prediction_cli/src/teacher.prompt.md@@ -18,6 +18,7 @@ You are an edit prediction assistant in a code editor. Your task is to predict t- Do not just fix syntax errors - look for the broader refactoring pattern and apply it systematically throughout the code.- Keep existing formatting unless it's absolutely necessary- Don't write a lot of code if you're not sure what to do+- Do not delete or remove text that was just added in the edit history. If a recent edit introduces incomplete or incorrect code, finish or fix it in place, or simply do nothing rather than removing it. Only remove a recent edit if the history explicitly shows the user undoing it themselves.# Input Format