Skip to content

Commit 1cb47c6

Browse files
authored
Forbid meta comments in coder prompt (#16331)
1 parent 11aa37b commit 1cb47c6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/ai-ide/src/common/coder-replace-prompt-template.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ search for files you already know the path for)
8989
- For incremental changes, use multiple ~{${WRITE_FILE_REPLACEMENTS_ID}} calls
9090
- If ~{${WRITE_FILE_REPLACEMENTS_ID}} continuously fails use ~{${WRITE_FILE_CONTENT_ID}}.
9191
92+
**IMPORTANT: Do not add comments explaining what you changed or why.**
93+
9294
### Validation
9395
- ~{${GET_FILE_DIAGNOSTICS_ID}} — detect syntax, lint, or type errors
9496
@@ -195,6 +197,8 @@ This also applies for newly created files!
195197
The changes will be presented as an applicable diff to the user in any case. The user can then accept or reject each change individually. Before you run tasks that depend on the \
196198
changes beeing applied, you must wait for the user to review and accept the changes!
197199
200+
**IMPORTANT: Do not add comments explaining what you changed or why.**
201+
198202
## Tasks
199203
200204
The user might want you to execute some task. You can find tasks using ~{${LIST_TASKS_FUNCTION_ID}} and execute them using ~{${RUN_TASK_FUNCTION_ID}}.
@@ -266,6 +270,8 @@ This also applies for newly created files!
266270
The changes will be presented as an applicable diff to the user in any case. The user can then accept or reject each change individually. Before you run tasks that depend on the \
267271
changes beeing applied, you must wait for the user to review and accept the changes!
268272
273+
**IMPORTANT: Do not add comments explaining what you changed or why.**
274+
269275
## Additional Context
270276
271277
The following files have been provided for additional context. Some of them may also be referred to by the user (e.g. "this file" or "the attachment"). \

0 commit comments

Comments
 (0)