You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -159,6 +198,7 @@ function buildRevisionPrompt(input: ApplyCommentInput, contextSections: string[]
159
198
constparts=[
160
199
'Revise the existing HTML artifact below.',
161
200
'Keep the overall structure, copy, and layout intact unless the user request requires a broader change.',
201
+
'Prioritize the selected element first and avoid unrelated edits.',
162
202
`User request: ${input.comment.trim()}`,
163
203
`Selected element tag: <${input.selection.tag}>`,
164
204
`Selected element selector: ${input.selection.selector}`,
@@ -172,7 +212,7 @@ function buildRevisionPrompt(input: ApplyCommentInput, contextSections: string[]
172
212
parts.push(contextSections.join('\n\n'));
173
213
}
174
214
parts.push(
175
-
'Return the full updated HTML artifact. Do not explain the diff line by line; a short summary outside the artifact is enough.',
215
+
'Return exactly one full updated HTML artifact wrapped in the required <artifact> tag. Do not use Markdown code fences. A short summary outside the artifact is enough.',
176
216
);
177
217
returnparts.join('\n\n');
178
218
}
@@ -197,6 +237,14 @@ async function runModel(input: ModelRunInput): Promise<GenerateOutput> {
0 commit comments