aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/modules/ai/test-ai-state.sh
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-30 17:37:46 +0100
committerDanilo M. <danix@danix.xyz>2026-10-30 17:37:46 +0100
commitab537892a9337a13c4d802185e5565ca70027679 (patch)
tree8d662736881cc058fa35f2fc42d0926c41fefa66 /desktop/modules/ai/test-ai-state.sh
parent412dec827b5d87c4138491faf49a0babb229f7e2 (diff)
downloadquickshell-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/test-ai-state.sh')
-rwxr-xr-xdesktop/modules/ai/test-ai-state.sh15
1 files changed, 5 insertions, 10 deletions
diff --git a/desktop/modules/ai/test-ai-state.sh b/desktop/modules/ai/test-ai-state.sh
index aac83fb..e4a6b0d 100755
--- a/desktop/modules/ai/test-ai-state.sh
+++ b/desktop/modules/ai/test-ai-state.sh
@@ -11,8 +11,8 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
-# The one runnable check for ai-state.sh. It puts stub curl, pgrep
-# and llamachat on PATH and a stub assistant.sh beside them, then runs
+# The one runnable check for ai-state.sh. It puts stub curl and pgrep
+# on PATH and a stub assistant.sh beside them, then runs
# the real script, so nothing here touches the live stack. T_* variables pick
# the state each stub reports.
#
@@ -61,11 +61,6 @@ case "$*" in
esac
STUB
-cat > "$stub/llamachat" <<'STUB'
-#!/bin/bash
-[[ "$1" == --ping && -n "${T_CHAT:-}" ]]
-STUB
-
cat > "$stub/assistant.sh" <<'STUB'
#!/bin/bash
[[ "$1" == status && -n "${T_ASSIST:-}" ]]
@@ -96,7 +91,7 @@ run() {
bash "$here/ai-state.sh"
}
-apps_down="$(l app assistant stopped -; l app chat stopped -)"
+apps_down="$(l app assistant stopped -)"
want="$(l engine llama down idle -; l engine sd down idle -)
$apps_down"
@@ -130,8 +125,8 @@ check "sd-cli running" "$(l engine sd up busy "Krea-2-Turbo-Q6_K.gguf (sd-cli)")
got="$(run T_CLI=1 T_SD=1 | sed -n 2p)"
check "sd-cli wins over an idle web UI" "$(l engine sd up busy "Krea-2-Turbo-Q6_K.gguf (sd-cli)")" "$got"
-want="$(l app assistant running -; l app chat running -)"
-got="$(run T_ASSIST=1 T_CHAT=1 | tail -n2)"
+want="$(l app assistant running -)"
+got="$(run T_ASSIST=1 | tail -n1)"
check "every app running" "$want" "$got"
printf '\n%d passed, %d failed\n' "$pass" "$fail"