Remove /limits after moving to /status (#4055)

Moved to /status #4053
This commit is contained in:
Ahmed Ibrahim
2025-09-22 11:23:05 -07:00
committed by GitHub
parent 76a9b11678
commit d2940bd4c3
11 changed files with 2 additions and 797 deletions

View File

@@ -128,7 +128,7 @@ impl RateLimitWarningState {
{
let threshold = RATE_LIMIT_WARNING_THRESHOLDS[self.weekly_index];
warnings.push(format!(
"Weekly usage exceeded {threshold:.0}% of the limit. Run /limits for detailed usage."
"Weekly usage exceeded {threshold:.0}% of the limit. Check /status to review usage."
));
self.weekly_index += 1;
}
@@ -138,7 +138,7 @@ impl RateLimitWarningState {
{
let threshold = RATE_LIMIT_WARNING_THRESHOLDS[self.hourly_index];
warnings.push(format!(
"Hourly usage exceeded {threshold:.0}% of the limit. Run /limits for detailed usage."
"Hourly usage exceeded {threshold:.0}% of the limit. Check /status to review usage."
));
self.hourly_index += 1;
}
@@ -996,9 +996,6 @@ impl ChatWidget {
SlashCommand::Status => {
self.add_status_output();
}
SlashCommand::Limits => {
self.add_limits_output();
}
SlashCommand::Mcp => {
self.add_mcp_output();
}
@@ -1355,15 +1352,6 @@ impl ChatWidget {
self.request_redraw();
}
pub(crate) fn add_limits_output(&mut self) {
if let Some(snapshot) = &self.rate_limit_snapshot {
self.add_to_history(history_cell::new_limits_output(snapshot));
} else {
self.add_to_history(history_cell::new_limits_unavailable());
}
self.request_redraw();
}
pub(crate) fn add_status_output(&mut self) {
let default_usage;
let usage_ref = if let Some(ti) = &self.token_info {