From caa60c65e8bd5500277ab14493b0af637c5befd2 Mon Sep 17 00:00:00 2001 From: hermes Date: Fri, 2 Oct 2026 11:05:53 +0000 Subject: [PATCH] =?UTF-8?q?Footer:=20reset=20countdown=20as=20'in=202h13m'?= =?UTF-8?q?=20(=E2=86=BB=20renders=20small=20in=20many=20fonts)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- crates/hx-tui/src/status.rs | 4 ++-- crates/hx-tui/src/theme.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8b5f06a..55c0b5e 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ offered; the default provider is the configured one, else the first logged in. T auto-compaction follow the active model's window (e.g. 1M for Claude 5.x). Usage: once a response arrives, the footer shows subscription limits from the provider's headers: -time windows with used % and time to reset (`5h 42% ↻2h13m · week 13%`) and, for credit billing, the +time windows with used % and time to reset (`5h 42% in 2h13m · week 13%`) and, for credit billing, the credit balance or extra-usage state. `/usage` shows the details. Sessions: `/new` (or `/clear`) starts a new session file; the old one stays resumable. `/sessions` opens a diff --git a/crates/hx-tui/src/status.rs b/crates/hx-tui/src/status.rs index 2496df3..6f8667f 100644 --- a/crates/hx-tui/src/status.rs +++ b/crates/hx-tui/src/status.rs @@ -252,7 +252,7 @@ fn until(at: u64, now: u64) -> String { } } -/// ` · 5h 42% ↻2h13m · week 13%`, then credits; warn at 70%, error at 90%. +/// ` · 5h 42% in 2h13m · week 13%`, then credits; warn at 70%, error at 90%. fn quota_spans(q: &hx_ai::Quota, now: u64) -> Vec> { let th = theme::t(); let mut v = vec![]; @@ -359,7 +359,7 @@ mod tests { .iter() .map(|s| s.content.to_string()) .collect(); - assert_eq!(t, " · 5h 42% ↻2h13m · week 91% ↻3d4h · credits: 37.5"); + assert_eq!(t, " · 5h 42% in 2h13m · week 91% in 3d4h · credits: 37.5"); assert_eq!( quota_spans(&q, 10_000)[3].style.fg, Some(ratatui::style::Color::Red) diff --git a/crates/hx-tui/src/theme.rs b/crates/hx-tui/src/theme.rs index 1a536b0..3c08e31 100644 --- a/crates/hx-tui/src/theme.rs +++ b/crates/hx-tui/src/theme.rs @@ -32,7 +32,7 @@ const UNICODE: Sym = Sym { info: "·", ellipsis: "…", minus: "−", - reset: "↻", + reset: "in ", }; const ASCII: Sym = Sym { @@ -48,7 +48,7 @@ const ASCII: Sym = Sym { info: "-", ellipsis: "...", minus: "-", - reset: "@", + reset: "in ", }; pub struct Theme {