ep: Update teacher prompt to avoid undoing user edits (#47313)

Oleksiy Syvokon created

Release Notes:

- N/A

Change summary

crates/edit_prediction_cli/src/teacher.prompt.md | 1 +
1 file changed, 1 insertion(+)

Detailed changes

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