Skip to content

feat(ios): check usage and plan limits without leaving the app - #207462

Draft
vyctorbrzezowski wants to merge 11 commits into
mainfrom
brzezowski/ios-native-usage
Draft

vyctorbrzezowski wants to merge 11 commits into
mainfrom
brzezowski/ios-native-usage

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

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.usage and usage.status on 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
Light Dark
Previous five-segment control in OpenClaw Usage, light appearance Previous five-segment control in OpenClaw Usage, 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.

Screen Light Dark
Usage · current period Usage · current period, light appearance Usage · current period, dark appearance
Usage · period menu Usage · period menu, light appearance Usage · period menu, dark appearance
Usage · custom dates Usage · custom dates, light appearance Usage · custom dates, dark appearance
Research · inherited seven-day period Research · inherited seven-day period, light appearance Research · inherited seven-day period, dark appearance

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 062f3ae9489c using 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

@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. labels Nov 28, 2026
@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Nov 28, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 28, 2026
@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head 73280d7e043494e1bf89e6db25bb71e9127f708a, but the PR head is now 94d1c257226a8d2ef45dcb1ed86641d19db8d000. Its old verdict and PR readiness labels are no longer current.

Next step
Comment @clawsweeper re-review when the current head is ready; pushes after the first review are not reviewed automatically.

Review history (1 earlier review cycle)
  • reviewed 2026-11-28T10:35:03.460Z sha 73280d7 :: needs changes before merge. :: [P2] [P2] Reload incomplete reports when usage computation finishes

@clawsweeper clawsweeper Bot removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Nov 28, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: ios App: ios impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. P2 Normal backlog priority with limited blast radius. size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant