diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-30 17:37:46 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-30 17:37:46 +0100 |
| commit | ab537892a9337a13c4d802185e5565ca70027679 (patch) | |
| tree | 8d662736881cc058fa35f2fc42d0926c41fefa66 /desktop/modules/ai/AiModule.qml | |
| parent | 412dec827b5d87c4138491faf49a0babb229f7e2 (diff) | |
| download | quickshell-ab537892a9337a13c4d802185e5565ca70027679.tar.gz quickshell-ab537892a9337a13c4d802185e5565ca70027679.zip | |
ai: drop local chat
local-chat (llamachat) is archived and uninstalled, superseded by
desktop-assistant, so its row could only ever read stopped and its
buttons called a command that no longer exists. Also folds the control
comment that described llamachat's restart dance down to one line.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'desktop/modules/ai/AiModule.qml')
| -rw-r--r-- | desktop/modules/ai/AiModule.qml | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/desktop/modules/ai/AiModule.qml b/desktop/modules/ai/AiModule.qml index 4c50224..32e9712 100644 --- a/desktop/modules/ai/AiModule.qml +++ b/desktop/modules/ai/AiModule.qml @@ -40,21 +40,15 @@ Module { llama: "llama.cpp", sd: "stable-diffusion.cpp", assistant: "Desktop assistant", - chat: "Local chat", }) readonly property string assistantSh: Quickshell.env("HOME") + "/Programming/GIT/desktop-assistant/assistant.sh" - // Each project's own control. llamachat has no restart, and --quit answers before the app is gone, so a --daemon - // straight after would find it still running and do nothing: wait for - // --ping to fail first, up to 5s. + // Each project's own control. readonly property var controls: ({ assistant: { start: [assistantSh, "start"], stop: [assistantSh, "stop"], restart: [assistantSh, "restart"] }, - chat: { start: ["llamachat", "--daemon"], stop: ["llamachat", "--quit"], - restart: ["sh", "-c", "llamachat --quit; for _ in $(seq 50); do " - + "llamachat --ping || break; sleep 0.1; done; exec llamachat --daemon"] }, }) function canStart(app) { return controls[app.name] !== undefined; } |
