Skip to content

feat: built-in status line with usage quota display#89

Merged
claude-code-best merged 2 commits intoclaude-code-best:mainfrom
amDosion:feat/status-line-clean
Apr 3, 2026
Merged

feat: built-in status line with usage quota display#89
claude-code-best merged 2 commits intoclaude-code-best:mainfrom
amDosion:feat/status-line-clean

Conversation

@amDosion
Copy link
Copy Markdown
Contributor

@amDosion amDosion commented Apr 3, 2026

Summary

  • src/components/BuiltinStatusLine.tsx: 新增内置状态栏组件,显示模型名称、context/token 用量、速率限制倒计时、费用追踪
  • src/components/StatusLine.tsx: 重构原状态栏,精简外部命令依赖

Test plan

  • bun run dev → 底部状态栏正常显示模型、token、费用信息
  • 窗口缩放时状态栏自适应布局

🤖 Generated with Claude Code

unraid and others added 2 commits April 3, 2026 19:47
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>
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 3, 2026

Warning

Rate limit exceeded

@amDosion has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 0 minutes and 36 seconds before requesting another review.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 3cf1b33c-98fa-4c7e-9ed5-eb1685065186

📥 Commits

Reviewing files that changed from the base of the PR and between a6bef45 and 2bede6c.

📒 Files selected for processing (2)
  • src/components/BuiltinStatusLine.tsx
  • src/components/StatusLine.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@claude-code-best claude-code-best merged commit 913702d into claude-code-best:main Apr 3, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants