Files
ModelRouter/internal/gateway
root c006c3988e perf(ui): probe sources asynchronously so /api/status no longer blocks on upstream reachability
ensureProbe() called Registry.ProbeAll() synchronously on every status request when >30s had passed since the last probe, blocking the response on the slowest upstream (zen ~1s, frank ~1.9s, total ~1.5s) — this stalled WebUI page loads and tab switches. Now the probe runs in a background goroutine (15s budget); status returns in ~7ms and the 3s stats poll picks up updated reachability next tick. Deployed (bak .bak.20260811s), server active.
2026-08-11 17:37:49 +08:00
..