You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Circuit breaker stays "open" in status after the recovery timeout, so status reports an outage that is over #1489
On main 007a1a7 (0.9.30), CircuitBreaker moves from open to half-open only inside the isAllowed getter, which runs on the next provider call. getState() returns the stored field. While the worker is idle after an outage, status keeps reporting circuitBreaker.state: "open" and raises the error-level problem provider-circuit-open ("LLM provider calls are paused"), although the next call is allowed.
Status reads getState() and so turns red after a provider blip that has already passed, until some background job makes an LLM call.
Required behavior
getState() reports half-open once the recovery timeout has elapsed, without changing the breaker's state or counters. isAllowed and the transition logic stay as they are.
Acceptance checks
A unit test: three failures, wait past the recovery timeout, getState().state === "half-open" before any isAllowed call; a failure then reopens it as today.
Activity