fix(ollama): saveOllamaSettings 가 health.runOnce() 즉시 호출 (T4 review)
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) <noreply@anthropic.com>
This commit is contained in:
@@ -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 };
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user