Offer to drop an assistant's code block straight into the Scheduler editor

This commit is contained in:
Gmer4Lfe
2026-08-10 19:59:28 -04:00
parent 6054f68754
commit 9c744b34f8
2 changed files with 85 additions and 3 deletions
+4 -1
View File
@@ -660,7 +660,10 @@ vv_ai_profiles_script();
body: new URLSearchParams({ action: 'clear', token }) }).catch(() => {});
finish();
save();
onTurn();
// The answer is passed so a page can react to what was said, not just that a turn
// happened — the Scheduler uses it to spot a code block worth offering to the editor.
// Handlers that take no argument are unaffected.
onTurn(j.answer);
return;
}
if (j.status === 'error') { addError(j.error || 'Unknown error'); finish(); return; }