Suppress rate-limit model nudge when credits exist

This commit is contained in:
dhruvgupta-oai
2026-03-23 13:07:37 -04:00
parent 1b0488a7dc
commit de58799770
2 changed files with 14 additions and 0 deletions
@@ -2427,7 +2427,14 @@ impl ChatWidget {
.map(|w| w.used_percent >= RATE_LIMIT_SWITCH_PROMPT_THRESHOLD)
.unwrap_or(false));
let has_workspace_credits = snapshot
.credits
.as_ref()
.map(|credits| credits.has_credits)
.unwrap_or(false);
if high_usage
&& !has_workspace_credits
&& !self.rate_limit_switch_prompt_hidden()
&& self.current_model() != NUDGE_MODEL_SLUG
&& !matches!(