mirror of
https://github.com/openai/codex.git
synced 2026-11-18 23:02:23 +00:00
tui: label compact rate-limit percentages (#24314)
## Summary The compact TUI status line already renders rate-limit percentages as remaining capacity, but the text did not say so. That made high-usage red indicators ambiguous because values like `weekly 6%` could be read as either used or remaining. This PR labels the compact rate-limit values explicitly as `left` across the status line, terminal title, and setup previews. Addresses #24274
This commit is contained in:
1 parent
6491d1207f
commit
caebff3d66
7 files changed
+16
-16
No files matched your search
@@ -246,7 +246,7 @@ async fn status_surface_preview_omits_unavailable_rate_limit_items() {
|
||||
&mut chat,
|
||||
&[StatusLineItem::FiveHourLimit, StatusLineItem::WeeklyLimit]
|
||||
),
|
||||
"weekly 91%"
|
||||
"weekly 91% left"
|
||||
);
|
||||
assert_eq!(
|
||||
title_preview_line(
|
||||
@@ -256,7 +256,7 @@ async fn status_surface_preview_omits_unavailable_rate_limit_items() {
|
||||
TerminalTitleItem::WeeklyLimit
|
||||
],
|
||||
),
|
||||
"weekly 91%"
|
||||
"weekly 91% left"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user