From ca3c66d882e60874b1cf4a1c5f9ea4232a593255 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sat, 17 Oct 2026 10:53:17 +0200 Subject: assistant: opening the canvas loads the preferred model A preferred model that only took effect from the settings page did nothing the next time another client had swapped it out. On this desktop one model and one client run at a time, so opening the canvas is when the assistant's model should come back: if the preferred one is neither loaded nor loading, it is loaded, and the canvas header says so until the router reports it in. The daemon still never asks for a model; with no preference set nothing changes. Co-Authored-By: Claude Opus 5.5 --- desktop/assistant/Assistant.qml | 3 +++ desktop/assistant/Card.qml | 1 + 2 files changed, 4 insertions(+) (limited to 'desktop/assistant') diff --git a/desktop/assistant/Assistant.qml b/desktop/assistant/Assistant.qml index f76c38d..6692648 100644 --- a/desktop/assistant/Assistant.qml +++ b/desktop/assistant/Assistant.qml @@ -63,6 +63,9 @@ Scope { readonly property bool connected: link.item?.connected ?? false property string state: "idle" property string model: "" + // The preferred model being loaded on open, shown in the header until + // the router reports it loaded. Set from shell.qml. + property string swapping: "" property int ctxUsed: 0 property int ctxMax: 0 property var convId: null diff --git a/desktop/assistant/Card.qml b/desktop/assistant/Card.qml index 150e483..4c76e64 100644 --- a/desktop/assistant/Card.qml +++ b/desktop/assistant/Card.qml @@ -83,6 +83,7 @@ Rectangle { Text { anchors { left: parent.left; verticalCenter: parent.verticalCenter } text: !card.canvas.connected ? "assistant not running" + : card.canvas.swapping ? `loading ${card.canvas.swapping}…` : card.canvas.model || "assistant" color: card.canvas.connected ? Theme.text : Theme.red font { family: Theme.fontFamily; pixelSize: Theme.fontSize - 2 } -- cgit v1.2.3