Consume rate limit reached type once

This commit is contained in:
Richard Lee
2026-04-15 16:15:01 -07:00
parent 832ab818fc
commit 96a874b9fb
+1 -1
View File
@@ -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."