π OpenHands: AI-Driven Development
Update summary prompt to avoid repetition in consecutive summaries (#9834)
Rohit Malhotrac05339cb2d32
diff --git a/openhands/integrations/templates/resolver/summary_prompt.j2 b/openhands/integrations/templates/resolver/summary_prompt.j2index c4c6d99e8d..64f5442322 100644--- a/openhands/integrations/templates/resolver/summary_prompt.j2+++ b/openhands/integrations/templates/resolver/summary_prompt.j2@@ -5,4 +5,5 @@ If you simply answered a question, this final message should re-state the answerIf you made changes, please first double-check the git diff, think carefully about the user's request(s), and check:1. whether the request has been completely addressed and all of the instructions have been followed faithfully (in checklist format if appropriate).2. whether the changes are concise (if there are any extraneous changes not important to addressing the user's request they should be reverted).+3. focus only on summarizing new changes since your last summary, avoiding repetition of information already covered in previous summaries.If the request has been addressed and the changes are concise, then push your changes to the remote branch and send a final message summarizing the changes.