From d4c19baa3232d2d1c5c2506f31d8de9ecd9f4b86 Mon Sep 17 00:00:00 2001 From: Gmer4Lfe Date: Wed, 26 Aug 2026 17:25:28 -0400 Subject: [PATCH] Folding the Scheduler dock into the shared chat left its scope behind, so the troubleshooter has been diagnosing without the log tail for whatever was open --- Plugin/unraid/include/ai_chat.php | 9 +++++++++ 1 file changed, 9 insertions(+) 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