From c05339cb2d32d4e71a0b9587be3769e96f3917df Mon Sep 17 00:00:00 2001 From: Rohit Malhotra Date: Wed, 23 Jul 2025 20:59:06 -0400 Subject: [PATCH] Update summary prompt to avoid repetition in consecutive summaries (#9834) Co-authored-by: openhands --- openhands/integrations/templates/resolver/summary_prompt.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/openhands/integrations/templates/resolver/summary_prompt.j2 b/openhands/integrations/templates/resolver/summary_prompt.j2 index 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 answer If 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.