mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
d6f99a7901
with_fast_sleeper mutated the process-global RETRY_DELAY_SEC via remove_const/const_set. The clean seam (pin_and_verify(sleeper:)) is not reachable from cmd.run without changing bin/railway production logic, so keep the swap but make it bulletproof against run-order state leakage: capture the original before mutating, track whether the swap happened so a mid-setup failure never leaves the const perturbed, restore in ensure even on raise, and silence the "already initialized constant" warning locally. Also reword the header/test comments so they no longer hardcode the literal "5 public hosts" count, referring to the EXPECTED_DOMAINS[PRODUCTION_ENV_ID] set instead so the prose can't drift from the SSOT the fixture derives from.