diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-23 17:10:56 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-23 17:10:56 +0200 |
| commit | 566b1a73ad1caf7ed399f96f5ec45153f7bd980f (patch) | |
| tree | ecce80967a110ec1bfafc6cc50f0a97e9554fbcd /desktop/shell.qml | |
| parent | 9b8b64da15bd6f96f228736f8604aef003304e72 (diff) | |
| download | quickshell-566b1a73ad1caf7ed399f96f5ec45153f7bd980f.tar.gz quickshell-566b1a73ad1caf7ed399f96f5ec45153f7bd980f.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'desktop/shell.qml')
| -rw-r--r-- | desktop/shell.qml | 11 |
1 files changed, 7 insertions, 4 deletions
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: |
