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/shell.qml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'desktop/shell.qml') diff --git a/desktop/shell.qml b/desktop/shell.qml index ec58936..ea2ce67 100644 --- a/desktop/shell.qml +++ b/desktop/shell.qml @@ -81,7 +81,7 @@ ShellRoot { SunsetModule {}, IdleModule {}, AutostartModule {}, - AssistantModule {}, + AssistantModule { id: asstSettings }, PresetsModule {}, GitModule {}, ] @@ -109,7 +109,14 @@ ShellRoot { // The assistant canvas on SUPER+Home, a view over desktop-assistant's // socket. See assistant/README.md. - Assistant { id: assistant } + Assistant { id: assistant; swapping: asstSettings.loading } + + // Opening the assistant loads its preferred model if another one is in + // VRAM. See modules/assistant/README.md. + Connections { + target: assistant + function onOpenChanged() { if (assistant.open) asstSettings.ensurePreferred(); } + } // The waybar launcher and the deep-link keybinds all reach this: // qs -p ipc call drawer toggle -> the grid -- cgit v1.2.3