aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/assistant/Assistant.qml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-17 10:59:22 +0200
committerDanilo M. <danix@danix.xyz>2026-10-17 10:59:28 +0200
commit8e9d8b9ac1b593032dea9eca312fa1495c0c8858 (patch)
tree9329824bc6a1d8e4f44da39e3722b4e2ea36c9f6 /desktop/assistant/Assistant.qml
parentca3c66d882e60874b1cf4a1c5f9ea4232a593255 (diff)
downloadquickshell-8e9d8b9ac1b593032dea9eca312fa1495c0c8858.tar.gz
quickshell-8e9d8b9ac1b593032dea9eca312fa1495c0c8858.zip
assistant: Load no longer changes the preferred model
Load set the preference as well as swapping the model in, so loading a model from the settings page for any reason made it the assistant's model too: after loading Qwen there, the canvas kept Qwen instead of bringing the preferred Gemma back. Load and Prefer are now separate buttons: Load swaps a model in now and leaves the preference alone, and Prefer only records which model the canvas loads when it opens. The canvas header also showed a stale model name after a swap; it now takes the model from the daemon's ctx event, which carries it from desktop-assistant f9d4644 on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'desktop/assistant/Assistant.qml')
-rw-r--r--desktop/assistant/Assistant.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop/assistant/Assistant.qml b/desktop/assistant/Assistant.qml
index 6692648..cc1d3d5 100644
--- a/desktop/assistant/Assistant.qml
+++ b/desktop/assistant/Assistant.qml
@@ -369,7 +369,9 @@ Scope {
root.state = e.state;
root.runningTool = e.state === "tool" ? e.tool : "";
break;
- case "ctx": root.ctxUsed = e.used; root.ctxMax = e.max; break;
+ // ctx carries the model since the router can swap it after hello; an
+ // older daemon leaves it out, and the hello's name stands.
+ case "ctx": root.ctxUsed = e.used; root.ctxMax = e.max; if (e.model) root.model = e.model; break;
case "conversations": root.convs = e.items; break;
case "results": root.results = e.items; break;
}