From 9590066b5b03e772f33b27ad33b7581fd5a487c3 Mon Sep 17 00:00:00 2001 From: Raj Rasane Date: Thu, 2 Apr 2026 10:18:52 +0530 Subject: [PATCH] fix: gracefully handle Docker/remote Ollama in system-check When Ollama runs inside Docker or a remote container, the native 'ollama ps' command is unavailable on the host. Instead of hard-failing and blocking CLI startup, downgrade to a pass() with a warning when the HTTP ping has already confirmed the server is reachable. --- scripts/system-check.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/system-check.ts b/scripts/system-check.ts index e129685a..2e12da5a 100644 --- a/scripts/system-check.ts +++ b/scripts/system-check.ts @@ -289,7 +289,7 @@ function checkOllamaProcessorMode(): CheckResult { if (result.status !== 0) { const detail = (result.stderr || result.stdout || 'Unable to run ollama ps').trim() - return fail('Ollama processor mode', detail) + return pass('Ollama processor mode', `Native CLI check failed (${detail}). Assuming valid Docker/remote backend since HTTP ping passed.`) } const output = (result.stdout || '').trim()