From 4153284af1b1e8b0a1c19e4e9686d147d8117d41 Mon Sep 17 00:00:00 2001 From: altair823 Date: Mon, 4 May 2026 23:37:57 +0900 Subject: [PATCH] =?UTF-8?q?fix(ollama):=20saveOllamaSettings=20=EA=B0=80?= =?UTF-8?q?=20health.runOnce()=20=EC=A6=89=EC=8B=9C=20=ED=98=B8=EC=B6=9C?= =?UTF-8?q?=20(T4=20review)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit T4 fallback comment "60s polling cycle" 대신 HealthChecker 의 기존 public method runOnce() 사용. 사용자가 settings 저장하자마자 OllamaBanner 갱신. runOnce 는 이미 inbox:ollamaRecheck IPC 가 사용 중인 패턴. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/main/ipc/inboxApi.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/ipc/inboxApi.ts b/src/main/ipc/inboxApi.ts index 312de17..644317e 100644 --- a/src/main/ipc/inboxApi.ts +++ b/src/main/ipc/inboxApi.ts @@ -161,7 +161,8 @@ export function registerInboxApi(deps: InboxIpcDeps): void { await deps.settings.setOllama(value); deps.providerHolder.get().abort?.(); deps.providerHolder.replace(trial); - // HealthChecker 의 다음 polling cycle (~60s) 에 새 endpoint 반영 + // 즉시 health 재확인 → onUpdate callback 통해 OllamaBanner 자동 갱신 + await deps.health.runOnce(); return { ok: true }; }); }