Allow model warmup during first run
Rolling release / release (push) Successful in 7m12s

This commit is contained in:
2026-09-11 18:04:07 -04:00
parent 7f14708af4
commit 28150185dc
+7 -1
View File
@@ -64,7 +64,13 @@ echo "[5/5] Typed smoke test"
read -r -p "Type a test prompt (default: say hello): " PROMPT
PROMPT="${PROMPT:-say hello}"
if [[ "${DAEMON_BUS_READY}" == true ]]; then
busctl --user call io.qvac.Jarvis /io/qvac/Jarvis io.qvac.Jarvis.Session Ask s "${PROMPT}"
SMOKE_TIMEOUT="${JARVIS_SMOKE_TIMEOUT:-180}"
if busctl --timeout="${SMOKE_TIMEOUT}" --user call io.qvac.Jarvis /io/qvac/Jarvis io.qvac.Jarvis.Session Ask s "${PROMPT}"; then
echo "Typed smoke test completed."
else
echo "Typed smoke test did not finish within ${SMOKE_TIMEOUT}s; the daemon is still running."
echo "Retry after model warmup with: busctl --user call io.qvac.Jarvis /io/qvac/Jarvis io.qvac.Jarvis.Session Ask s \"${PROMPT}\""
fi
else
echo "Daemon is not available on the session D-Bus; saved setup and skipped live prompt."
echo "Inspect with: systemctl --user status jarvisd.service"