Skip to content

feat(chat): show subscription rate-limit ring for Codex, Claude Code, and Antigravity - #441

Merged
yuga-hashimoto merged 2 commits into
mainfrom
feat/subscription-rate-limit-indicator
Nov 25, 2026
Merged

yuga-hashimoto merged 2 commits into
mainfrom
feat/subscription-rate-limit-indicator

Conversation

@yuga-hashimoto

Copy link
Copy Markdown
Owner

Summary

  • Adds a compact circular subscription rate-limit indicator (SubscriptionRateLimitRing) pinned to the bottom-right corner of the chat composer (directly below the send button), displaying the higher usage percentage between the 5-hour and weekly limits.
  • Tapping the ring opens RateLimitDetailSheet with per-window usage bars, reset timestamps, and a manual refresh action where supported.
  • Wires up rate-limit collection across all three local subscription agents:
    • Codex: account/rateLimits/read RPC + account/rateLimits/updated notifications.
    • Claude Code: rate_limit_event parsing from --output-format stream-json (merging single-window updates).
    • Antigravity: agy --output-format json --print /usage under AntigravityProcessGate.exclusive, matching the active model group (Gemini vs. Claude/GPT) for the ring while showing all groups in the sheet.
  • Adds unit tests for all parsers and window/group selection logic, plus translations for all supported locales.

Verification

  • Verified agy --output-format json --print /usage live output format on-device and added it as a test fixture.
  • Verified all locale string keys match values/strings.xml.
  • Relying on CI (android.yml, pr-apk-build.yml, i18n-check.yml) for Gradle unit tests, detekt/ktlint, and debug APK build.

@yuga-hashimoto yuga-hashimoto added the build-apk Build and comment the Android debug APK label Nov 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Debug APK built successfully

Download APK artifact
View workflow run

Commit: a36c6d0806b2 | Artifact expires in 14 days.

@yuga-hashimoto
yuga-hashimoto merged commit e4a4483 into main Nov 25, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build-apk Build and comment the Android debug APK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant