Skip to content

feat: add settings toggle to show detailed remaining time - #24

Closed
carlosresu wants to merge 1 commit into
CodeZeno:mainfrom
carlosresu:feat/detailed-remaining-time
Closed

feat: add settings toggle to show detailed remaining time#24
carlosresu wants to merge 1 commit into
CodeZeno:mainfrom
carlosresu:feat/detailed-remaining-time

Conversation

@carlosresu

@carlosresu carlosresu commented May 15, 2026

Copy link
Copy Markdown

Summary

Adds an opt-in Show detailed remaining time toggle under the right-click Settings menu. Rebased on v1.4.8 and extended to the Antigravity model. When enabled:

  • The 5h session rows show minutes alongside hours (e.g. 4h 12m instead of 4h)
  • The 7d weekly rows show hours alongside days (e.g. 3d 5h instead of 3d)
  • Applies to all three models — Claude, Codex, and Antigravity
  • The countdown repaints on the finer-unit boundary so the value never goes stale

Default is off, so existing installs see today's behavior. The preference persists in settings.json as show_detailed_remaining with #[serde(default)] for clean migration.

Dynamic column width

The usage-cell text column measures the actual rendered text and sizes to it, so the wider detailed strings (e.g. 100% · 23h 59m) fit without clipping and without reserving a fixed worst-case when the toggle is off. The widget grows only when content needs it.

Screenshots

Same usage/reset data, toggled via right-click → Settings → Show detailed remaining time.

Detailed time OFF Detailed time ON
off on

Sub-hour behavior unchanged

The toggle only adds a sub-unit when the top unit is h or d; minute/second displays render identically in both modes, and now is unchanged.

Localization

Show detailed remaining time is translated across all 10 supported locales.

Independence & compatibility

Branches directly off v1.4.8 main (single commit) and contains only this feature — merge it alone, or alongside the pace-indicator (#25) and ETD (#38) PRs in any order: every combination merges with 0 conflicts (verified via git merge-tree + a triple-merge that builds and passes tests).

Test plan

  • cargo build + cargo test clean on v1.4.8
  • Default off → unchanged (4h, 3d)
  • On → detailed text renders (4h 23m, 2d 1h) across Claude/Codex/Antigravity; column tracks content with no clipping
  • Settings checkmark reflects state; persists across restart

@carlosresu carlosresu changed the title feat: add Settings toggle to show detailed remaining time feat: add settings toggle to show detailed remaining time May 18, 2026
@carlosresu
carlosresu force-pushed the feat/detailed-remaining-time branch from d49cf66 to 39a9166 Compare June 19, 2026 12:40
@CodeZeno

Copy link
Copy Markdown
Owner

Hey @carlosresu, v2 is officially out! 🎉

The detailed reset-time experience you proposed here is now supported through v2’s Theme Studio. It takes your original toggle idea further by letting each theme control exactly how reset times are displayed for Claude Code, Codex, and Antigravity.

The detailed duration format produces the specific results you were after, such as 4h 12m and 3d 5h, with localized time suffixes. Theme layers can also be resized to accommodate the longer text, and saved themes persist across restarts.

To set it up:

  1. Update to v2.0.1 and open Dashboard → Theme Studio.
  2. Select Classic v1 and click Duplicate, since the bundled theme is read-only.
  3. Select a 5-hour or 7-day value layer and open its text helper.
  4. Choose the provider’s reset value and Detailed duration, or use a template such as:
    {claude.session.percentage:0}% · {claude.session.reset.seconds:duration}
  5. Repeat for the weekly layer or other providers, adjust the layer width if needed, then save and apply the theme.

Since v2 now covers the core capability behind this PR in a more flexible form, I’m closing it as superseded.

Thank you again, @carlosresu! Your concrete examples and careful attention to Claude, Codex, Antigravity, localization, persistence, and longer text made the use case exceptionally clear. 🚀

@CodeZeno CodeZeno closed this Aug 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants