From 8e9d8b9ac1b593032dea9eca312fa1495c0c8858 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sat, 17 Oct 2026 10:59:22 +0200 Subject: 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 --- desktop/assistant/Assistant.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'desktop/assistant') 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; } -- cgit v1.2.3