From 76ee933467ebe6cffa0359c49695e341372a87b9 Mon Sep 17 00:00:00 2001 From: 4cuck <40539855+4cuck@users.noreply.github.com> Date: Sat, 29 Aug 2026 02:52:10 -0400 Subject: [PATCH] api: keep a recorded rate limit over the code 88 fallback --- src/api/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/client.rs b/src/api/client.rs index 107535c..fad0322 100644 --- a/src/api/client.rs +++ b/src/api/client.rs @@ -600,7 +600,7 @@ impl ApiClient { self.sessions.mark_rejected(session.id).await; return Err(Error::SessionRejected(msg.clone())); } - if matches!(api_check, Err(Error::RateLimited)) { + if !limit_recorded && matches!(api_check, Err(Error::RateLimited)) { self .sessions .mark_endpoint_limited(session.id, endpoint)