mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-14 01:36:14 +00:00
A caller passing 0, a negative number, NaN, or a non-finite value would cause every batch's AbortController to fire immediately, silently turning registry enrichment into 100% soft-failure. Add clampTimeoutMs which rejects non-numeric, non-finite, or non-positive inputs and returns the DEFAULT_TIMEOUT_MS (5000ms). Math.floor on the validated value so AbortController gets an integer. Addresses CodeRabbit minor finding 3181982716.