Skip to content

Commit a5eb929

Browse files
OrKoNDevtools-frontend LUCI CQ
authored andcommitted
Try improve patch agent instructions
Bug: 420601973 Change-Id: Ie8a2170a4d141f999cd51e5dd56027f29e4b79d5 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6591361 Commit-Queue: Alex Rudenko <alexrudenko@chromium.org> Reviewed-by: Ergün Erdoğmuş <ergunsh@chromium.org>
1 parent 41d973f commit a5eb929

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

front_end/models/ai_assistance/agents/PatchAgent.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ Call the updateFiles with the list of files to be updated once you are done.
253253
254254
CRITICAL: before searching always call listFiles first.
255255
CRITICAL: never call updateFiles with files that do not need updates.
256+
CRITICAL: ALWAYS call updateFiles instead of explaining in text what files need to be updated.
257+
CRITICAL: NEVER ask the user any questions.
256258
`;
257259

258260
const responses = await Array.fromAsync(this.run(prompt, {selected: null, signal}));

0 commit comments

Comments
 (0)