assistant2: Change system prompt to discourage doom loops (#27781)

Ask assistant to limit diagnostic fix attempts to 3 max

Release Notes:

- N/A

Co-authored-by: Richard Feldman <richard@zed.dev>
This commit is contained in:
Agus Zubiaga
2025-03-31 14:03:47 +00:00
committed by GitHub
co-authored by Richard Feldman
parent 9b44bacc28
commit ca6be249dc
2 changed files with 5 additions and 3 deletions
@@ -16,3 +16,5 @@ To get a project-wide diagnostic summary:
</example>
IMPORTANT: When you're done making changes, you **MUST** get the **project** diagnostics (input: `{}`) at the end of your edits so you can fix any problems you might have introduced. **DO NOT** tell the user you're done before doing this!
You may only attempt to fix these up to 3 times. If you have tried 3 times to fix them, and there are still problems remaining, you must not continue trying to fix them, and must instead tell the user that there are problems remaining - and ask if the user would like you to attempt to solve them further.