Skip to content

Commit 8e35e40

Browse files
committed
fix(ai): scope verification hint to live preview HTML work
Only suggest execJsInLivePreview and takeScreenshot for verification when working with HTML/CSS/JS in live preview, not generically.
1 parent e069538 commit 8e35e40

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src-node/claude-code-agent.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,9 +470,9 @@ async function _runQuery(requestId, prompt, projectPath, model, signal, locale,
470470
"controlEditor). Never use relative paths." +
471471
"\n\nWhen a tool response mentions the user has typed a clarification, immediately " +
472472
"call getUserClarification to read it and incorporate the user's feedback into your current work." +
473-
"\n\nWhen planning, include a verification step that uses execJsInLivePreview " +
474-
"and takeScreenshot to confirm the result visually. These tools let you run JS " +
475-
"in the browser live preview and capture screenshots for verification." +
473+
"\n\nWhen planning, include a verification step. For HTML/CSS/JS work with " +
474+
"live preview, you can use execJsInLivePreview to run JS in the browser and " +
475+
"takeScreenshot to confirm the result visually." +
476476
(locale && !locale.startsWith("en")
477477
? "\n\nThe user's display language is " + locale + ". " +
478478
"Respond in this language unless they write in a different language."

0 commit comments

Comments
 (0)