Improve rate limit UI for all types of rate limit
- 主要语言
- Shell
- 星标
- 11.2k
- 派生
- 1.9k
- 平均合并
- 14 小时 16 分钟
- 30 天内合并 PR
- 6
描述
### Describe the feature or problem you'd like to solve
The only indicators for rate limits are either when they trigger and block access, or the one-off warnings for the weekly limit at 75% or 90%.
### Proposed solution
Provide a method or UI element that describes current rate limit usage for all rate limits. Other agentic AI services that rely on rate limiting for access already do this (e.g., Codex, Claude Code have a series of progress bars describing 5-hour, daily, weekly limits, etc.). This could either be part of the GitHub web UI, where you already have a progress bar tracking remaining requests, part of the existing status-bar UI in CLI, and/or part of a command like /usage (e.g., a line like `5-hour limit: 40% left | Daily limit: 80% left | Weekly limit: 33% left`). If there needs to be a differentiation between global Copilot limits and service-specific ones, then you could also add that as a separate line or as a note with model info.
Surprising users with messages that they have to stop for an hour is annoying and intrusive, especially if it hits while the agent is working mid-turn. Having a lead-up for *every* limit, not just the weekly, helps users expect and anticipate it when they will hit, which allows them to pivot to another service to work, or pivot in a break organically.
I'm not asking for rate limits to go away -- I understand why that would be an unreasonable request -- but users should have enough information to be able to work around them without just hitting a sudden wall in a way that, from their perspective, is functionally random.
### Example prompts or workflows
```
/usage
* Changes +12345 -12345
Requests 25 Premium (12h 34m 56s)
Tokens ^ 60.0m * v 400.0k * 59.0m (cached) * 250.0k (reasoning)
- Daily limit: 40% remaining (resets in 12h 34m 56s)
- Weekly limit: 80% remaining (resets in 5d 12h 34m 56s)
- All models currently available
```
### Additional context
_No response_
贡献指南
调研方向
Start by reviewing the existing status-bar UI, weekly-limit warnings, and any /usage command mentioned in the issue. Determine how current usage and reset times are obtained for each rate limit, then define completion as displaying remaining usage and reset information for all applicable limits without surprising users at the limit.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- shell
- 领域
- cli
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 冷清
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100