Skip to content

Show quota reset times in CLI status output#8

Open
brendandebeasi wants to merge 1 commit intoKarpelesLab:masterfrom
brendandebeasi:feature/status-reset-times
Open

Show quota reset times in CLI status output#8
brendandebeasi wants to merge 1 commit intoKarpelesLab:masterfrom
brendandebeasi:feature/status-reset-times

Conversation

@brendandebeasi
Copy link
Copy Markdown

Extracts the formatReset helper into src/index.js and updates the teamclaude status command to display time-to-reset (e.g., "resets in 2h30m") next to the usage percentages for both unified and standard quotas.

Matches the behavior already present in the TUI dashboard.

    Extracts the `formatReset` helper into `src/index.js` and updates the
    `teamclaude status` command to display time-to-reset (e.g., "resets in 2h30m")
    next to the usage percentages for both unified and standard quotas.
@brendandebeasi
Copy link
Copy Markdown
Author

Note on behavior: When testing this on an active gateway, I noticed that inactive accounts might show a usage percentage without a corresponding reset time. This is expected behavior: if the reset time has already passed, TeamClaude clears the timestamp, but the usage percentage remains "frozen" at its last known value until that account is actually used again to fetch fresh headers from Anthropic.

@brendandebeasi
Copy link
Copy Markdown
Author

brendandebeasi commented May 6, 2026

Here is an example of what the new output looks like when tested on a live gateway:

Active account: E1
Switch at:      98% usage

E1 (oauth) *
    Status:   active
    Session:  21.0% (resets in 4h14m)    Weekly: 38.0% (resets in 1d7h)
    Total:    1069291 tokens, 319 requests

E2 (oauth)
    Status:   active
    Session:  22.0% (resets in 3h24m)    Weekly: 98.0%
    Total:    865559 tokens, 2364 requests

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.

1 participant