[FEATURE] Precise Session Reset Timer (hours & minutes)

Status Open
Maintainer reply None cached
Activity 3 comments · opened Sep 21, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

Please Add precise timer for Session Reset time.

In the example i have reset in 3h 26 minutes while VS Code extension show 3h.

Proposed Solution

Claude.ai has precise timer so why frustrate users in other IDE?

It mush be 3h 26m instead (in every window where it shows,
for e.g.: in message field, in Usage tab, in Usage popup and so on).
____________________

<img width="819" height="254" alt="Image" src="https://github.com/user-attachments/assets/4f565cd8-a93f-487a-98d9-a584936d30d8" />

Alternative Solutions

_No response_

Priority

High - Significant impact on productivity

Feature Category

CLI commands and flags

Use Case Example

In every situation: from starting session to hit 100% limit

Additional Context

_No response_

View original on GitHub ↗

3 Comments

radozea · 18 days ago

Still happening in the VS Code extension 2.1.280. I tracked down the cause and patched it locally.

Cause: the reset countdown is built by two formatters in webview/index.js. Both compute whole hours/days with Math.floor and return only that unit, dropping the remainder. Minified names from 2.1.280:

  • gS(): rate-limit banner (· resets in …) and usage bars
  • I35(): usage bars in the account panel

| Time left | Shown | Expected |
|---|---|---|
| 1h 59m | in 1h | in 1h 59m |
| 23h 59m | in 23h | in 23h 59m |
| 1d 23h | in 1d | in 1d 23h |

Fix: append the next unit down when it isn't zero.

gS(): replace

let Y=Math.floor(X/60);if(Y<24)return`in ${Y}h`;return`in ${Math.floor(Y/24)}d`}

with

let Y=Math.floor(X/60);if(Y<24)return X%60?`in ${Y}h ${X%60}m`:`in ${Y}h`;return Y%24?`in ${Math.floor(Y/24)}d ${Y%24}h`:`in ${Math.floor(Y/24)}d`}

I35(): replace

if(Y<60)return`in ${Y}m`;else if(Q<24)return`in ${Q}h`;else return`in ${z}d`}

with

if(Y<60)return`in ${Y}m`;else if(Q<24)return Y%60?`in ${Q}h ${Y%60}m`:`in ${Q}h`;else return Q%24?`in ${z}d ${Q%24}h`:`in ${z}d`}

With this applied locally, 1h 59m shows as "in 1h 59m" and exact values like "in 1h" / "in 3d" are unchanged. The CLI already has a formatter that outputs Xh Ym, so reusing that in the webview would also work.

Fessoid · 16 days ago
Still happening in the VS Code extension 2.1.280. I tracked down the cause and patched it locally.

Still happening in the VS Code extension 2.1.283
Repaired myself with your instruction. Thanks alot.

Need to be patched by Anthropic aswell.

yagcioglutoprak · 11 days ago

Until the extension shows minutes, claude.ai → Settings → Usage has the exact countdown. In the terminal CLI, the statusLine JSON also exposes rate_limits.five_hour.resets_at (a timestamp), which a status-line script can format as hours and minutes. If you're on macOS, I built AIQuotaBar (disclosure: I'm the author), a free, open-source menu bar app that shows the Claude 5-hour and weekly limits with reset countdowns, so the timer is visible whichever editor you're in. macOS only: https://github.com/yagcioglutoprak/AIQuotaBar