Offer to drop an assistant's code block straight into the Scheduler editor
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user