Repository navigation
fix(app): show the server allowance meter for metered paid plans - #21314
Merged
Merged
Conversation
This was referenced Oct 12, 2026
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
What changed and why
The usage page now treats a present unlimited
transcription_allowanceas authoritative even when an older subscription snapshot carries Free's finite transcription limit. Finite snapshots still provide the total budget because remaining seconds alone cannot recover a total at exhaustion. Word/insight visibility and access gates retain their existing behavior. The conflict resolution preserves main #21337's Paywall Opened instrumentation: user-triggered openers pass trackOpen=true, while already-instrumented openers pass false to prevent duplicate events.Product invariants affected
none
How it was verified
TZ=UTC flutter test test/widgets/usage_page_redesign_test.dart— 22 passed after mergingorigin/main(e98b7a49378). These render the real UsagePage and scroll its real list.features=['byok'], hidden subscription UI, nested/top-level 18,000-second limits, and a managed allowance with null remaining seconds. It renders no progress meter despite usage above 80% of the stale Free cap.TZ=UTC flutter test test/spine— 129 passed. Preflight, normal push gates and exact-head CI are reported in the handoff.Tests
app/test/widgets/usage_page_redesign_test.dartadds real-JSON regressions for unlimited enforcement versus stale finite BYOK totals and finite Plus-BYOK before the backend fix. Existing Plus/remapped Plus, unlimited-v2, Free three-meter and identity/gate assertions remain covered.Required deployment order
#21315 backend must be deployed and verified before any mobile release containing #21314. Merging #21315 alone is insufficient. The unlimited guard protects legacy unlimited accounts from the old contradictory response, but it cannot reconstruct a finite Plus total from remaining seconds. Plus-BYOK still shows Free's 300-minute snapshot until the backend projection is deployed.
Merge order remains #21313, #21315, #21314. No deployment, flag flip or production write is part of this PR.
UI evidence
UI-Evidence: none -- Real UsagePage rendering verified by hermetic widget tests; no installed-device screenshot captured.
Failure class
Failure-Class: none
Risks for reviewers