Only include diagnostic instruction once (#29975)

Instead of once per diagnostic error.

Release Notes:

- N/A
This commit is contained in:
Max Nordlund 2025-05-11 17:33:49 +02:00 committed by GitHub
parent 06af0310f7
commit 49ba4ed49c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,10 +49,9 @@ And here's the section to rewrite based on that prompt again for reference:
</rewrite_this>
{{#if diagnostic_errors}}
{{#each diagnostic_errors}}
Below are the diagnostic errors visible to the user. If the user requests problems to be fixed, use this information, but do not try to fix these errors if the user hasn't asked you to.
{{#each diagnostic_errors}}
<diagnostic_error>
<line_number>{{line_number}}</line_number>
<error_message>{{error_message}}</error_message>