Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughAdds a configurable usage-limits bar below the chat composer. The bar uses provider snapshots to display account notices, usage windows, remaining percentages, and reset times. ChangesUsage limits bar
Priority: ⬇️ Low — Defer the configurable usage-limits bar because its scope is a non-blocking web and desktop chat-composer enhancement with no supplied external urgency. Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This change adds a configurable usage-limits bar to web and desktop chat while preserving mobile behavior. No merge-blocking current-head risk is identified. Sequence Diagram(s)sequenceDiagram
participant SettingsPanel
participant ChatView
participant UsageLimitsBar
SettingsPanel->>ChatView: update showUsageLimitsBar setting
ChatView->>UsageLimitsBar: pass instanceId, providers, and sources
UsageLimitsBar->>UsageLimitsBar: collectProviderUsageLimits
UsageLimitsBar-->>ChatView: render usage notices and windows
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
What Changed
Adds a compact usage limits bar below the chat composer in web and desktop. It follows the selected provider and shows remaining quota and reset times from the same snapshots as Usage → Limits. Multiple accounts have revealable account labels.
The bar is enabled by default and can be disabled in Settings → General → Show usage limits below chat. The preference is stored on the client. Native mobile is unchanged.
Why
I like the Limits view, but switching away from the conversation just to check remaining quota gets repetitive. This keeps those numbers visible while working, without adding another polling loop or timer. Providers without limit data have no bar.
UI Changes
Before (bar disabled, matching the previous chat layout):
After:
Codex:
Settings:
Narrow web viewport
Validation
Checklist
Summary by CodeRabbit