From 566b1a73ad1caf7ed399f96f5ec45153f7bd980f Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 23 Oct 2026 17:10:56 +0200 Subject: assistant: load the chat's model on open, docs for cloud models The canvas asks for its chat's model, else the preferred one, when it opens and when the pick changes; a cloud id loads nothing. The paperclip also closes the model panel, so it and the picker never stack. The plan's Models.qml import is corrected to the one that resolves. Co-Authored-By: Claude Opus 5.5 --- desktop/shell.qml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'desktop/shell.qml') diff --git a/desktop/shell.qml b/desktop/shell.qml index 4b4f47f..8aaead3 100644 --- a/desktop/shell.qml +++ b/desktop/shell.qml @@ -126,17 +126,20 @@ ShellRoot { // The assistant canvas on SUPER+Home, a view over desktop-assistant's // socket. See assistant/README.md. - Assistant { id: assistant; swapping: asstSettings.loading; hears: asstSettings.hears } + Assistant { id: assistant; swapping: asstSettings.loading; hears: asstSettings.hears + preferred: Prefs.assistantModel } // The desktop companion, bottom-right of the focused monitor, on SUPER+\. // She reads the assistant's state. See companion/README.md. Companion { asst: assistant } - // Opening the assistant loads its preferred model if another one is in - // VRAM. See modules/assistant/README.md. + // Opening the assistant, or picking another model for its chat, loads + // that model if it is a local one and another is in VRAM. See + // modules/assistant/README.md. Connections { target: assistant - function onOpenChanged() { if (assistant.open) asstSettings.ensurePreferred(); } + function onOpenChanged() { if (assistant.open) asstSettings.ensureModel(assistant.wanted); } + function onWantedChanged() { if (assistant.open) asstSettings.ensureModel(assistant.wanted); } } // The waybar launcher and the deep-link keybinds all reach this: -- cgit v1.2.3