Repository navigation
feat(ios): check usage and plan limits without leaving the app - #207462
Draft
vyctorbrzezowski wants to merge 11 commits into
Draft
vyctorbrzezowski wants to merge 11 commits into
vyctorbrzezowski wants to merge 11 commits into
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Contributor
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
This was referenced Nov 30, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #207460
What Problem This Solves
Opening Usage from the iPhone sidebar takes an operator into the web dashboard. Checking how much of a plan remains, comparing this week with the last month, and finding the agent responsible for usage should not require switching interfaces.
User Impact
The sidebar now opens a native report with current provider limits, a daily token chart, preset and custom dates, and an agent detail sheet for the same period. It shows calls, errors, latency, measured prompt-cache hit rate, token categories, model/provider/channel attribution and the highest-usage sessions. Provider-reported balances and budgets keep their original units; quotas are not converted to money. Missing prices are not treated as free usage. Administrators can still open the full web report.
Why This Change Was Made
The app requests
sessions.usageandusage.statuson the existing operator connection. Provider limits are independent of the session date range, and opening an agent requests that agent’s totals rather than adding up a truncated list of sessions. There are no new Gateway endpoints or migrations.Before and after on iPhone
Before: the native Usage prototype put five periods in one segmented control.
Previous OpenClaw control in light and dark appearance
After: the pill shows the selected period. Its native menu offers Last 7 days, Last 30 days, Last 90 days, Last year and Custom range…. Custom dates open in a sheet: Cancel keeps the current range; Apply updates the report. The date and time zone stay below the pill. Opening an agent carries over the selected range.
Changing the period
In this 11-second simulator recording, selecting Last 7 days changes 209,850 tokens to 54,990 and replaces 30 daily bars with seven. The period control stays in place, and the current weekly quota stays at 72% remaining.
openclaw-usage-period.mp4
Captured on iPhone 17 Pro from commit
062f3ae9489cusing synthetic data. The focused UI check exercises the menu, cancelling custom dates, opening Research with the same range, and applying custom dates from the agent sheet in both appearances. No authenticated end-to-end usage read was exercised.Provider billing history, creator filtering, hourly analysis, session logs and timelines, comparisons and exports remain in the full OpenClaw web report.
🦞 Made with OpenClaw