diff --git a/Plugin/unraid/include/ai_chat.php b/Plugin/unraid/include/ai_chat.php index 6088546..25a917a 100644 --- a/Plugin/unraid/include/ai_chat.php +++ b/Plugin/unraid/include/ai_chat.php @@ -1363,6 +1363,15 @@ vv_ai_profiles_script(); profile: profile, question: q, history: JSON.stringify(sendable()), + // Where the caller is standing, so a question can say "this setting" and mean it. The + // backend whitelists it and passes it to the worker, which turns it into a location + // line; a page that sets no scope sends '' and the worker omits that line. + // + // Keep this here. The scope-aware dock in 185abdb sent it from the page's own ask call; + // 8eeb4c3 folded that dock into this component and the line did not come with it, so + // for the whole of that window Scheduler computed a scope, re-read it at send time, and + // the model never saw it. Nothing errored — the answer just arrived ungrounded. + scope: (typeof o.scope === 'function' ? o.scope() : (o.scope || '')), kind: (PROFILES[profile].kind && kindEl) ? kindEl.value : '', // A checkbox where the page offers one, otherwise whatever the page decides from the // profile, otherwise on. The Scheduler reasons only when diagnosing: working out what a