aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/assistant
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/assistant')
-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;
}