feat: built-in status line with usage quota display#89
feat: built-in status line with usage quota display#89claude-code-best merged 2 commits intoclaude-code-best:mainfrom
Conversation
Add BuiltinStatusLine component with token counts, cost tracking, and usage quota display. Refactor StatusLine to use the built-in implementation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
messagesRef.current is typed as Message[] | null per React's RefObject. doesMostRecentAssistantMessageExceed200k() and getCurrentUsage() expect Message[], not null. Add ?? [] fallback to prevent runtime error. Addresses CodeRabbit finding on PR claude-code-best#51. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 0 minutes and 36 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Summary
src/components/BuiltinStatusLine.tsx: 新增内置状态栏组件,显示模型名称、context/token 用量、速率限制倒计时、费用追踪src/components/StatusLine.tsx: 重构原状态栏,精简外部命令依赖Test plan
bun run dev→ 底部状态栏正常显示模型、token、费用信息🤖 Generated with Claude Code