From ab537892a9337a13c4d802185e5565ca70027679 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 30 Oct 2026 17:37:46 +0100 Subject: 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 --- desktop/modules/ai/AiModule.qml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'desktop/modules/ai/AiModule.qml') 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; } -- cgit v1.2.3