Auto-generate on clear create-photo user requests (0.15.16).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Leonid Pershin
2026-08-23 20:56:09 +03:00
co-authored by Cursor
parent caa18e8a51
commit 649c64a587
8 changed files with 69 additions and 19 deletions
+1 -3
View File
@@ -355,9 +355,7 @@ export function resolveTurnIntent(patch, userText, {
const delta = normalizeDelta(patch) || {};
const vetoed = typeof vetoFn === 'function' ? !!vetoFn(userText) : false;
const modelAsked = patchWantsGenerate(delta);
const hasPrompt = !!(String(delta.prompt || '').trim() || String(sessionPrompt || '').trim());
const userAsked = typeof askGenerateFn === 'function' && !!askGenerateFn(userText)
&& (modelAsked || hasPrompt);
const userAsked = typeof askGenerateFn === 'function' && !!askGenerateFn(userText);
const generate = !vetoed && !fromAutoCritique && (userAsked || !!userWantsGenerate);
const hasLook = delta.look_at != null || delta.vision_from != null || delta.vision_slots != null;
const look = !!(hasLook && !generate && !vetoed);