From 96a874b9fb61648e3d75cd8c45c644ddf5dd1952 Mon Sep 17 00:00:00 2001 From: Richard Lee Date: Wed, 15 Apr 2026 16:15:01 -0700 Subject: [PATCH] Consume rate limit reached type once --- codex-rs/tui/src/chatwidget.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-rs/tui/src/chatwidget.rs b/codex-rs/tui/src/chatwidget.rs index 9ed0d5d39e..25f43a5e7b 100644 --- a/codex-rs/tui/src/chatwidget.rs +++ b/codex-rs/tui/src/chatwidget.rs @@ -2808,7 +2808,7 @@ impl ChatWidget { } fn on_rate_limit_error(&mut self, message: String) { - match self.codex_rate_limit_reached_type { + match self.codex_rate_limit_reached_type.take() { Some(RateLimitReachedType::WorkspaceOwnerCreditsDepleted) => { self.on_error( "You're out of credits. Your workspace is out of credits. Add credits to continue using Codex."