Files
openclaw/extensions
Masato Hoshino aa9cf01b56 fix(ollama): bound DNS preflight with guard-owned request timeouts (#111835)
* fix(ollama): bound DNS preflight with guard-owned request timeouts

Five ollama call sites passed their deadline as init.signal, which
fetchWithSsrFGuard only forwards to the final fetch. The DNS/proxy
preflight and dispatcher connect timeout read the top-level timeoutMs,
so a stalled lookup hung past the intended 3s/5s/15s deadline.

Move each deadline to the guard-owned timeoutMs. Values unchanged.

* test(ollama): assert preflight lookup ran and deadline bound both ways

Use plain counters instead of vi.fn for the injected lookup: vi.fn is not
assignable to the overloaded LookupFn type, which passed vitest but failed
the extension test-types lane.
2026-07-21 13:47:09 +03:00
..