Conversation
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.
Codex reports a remaining credit balance but MeterUsage did not track changes in that balance or show credits beside subscription windows in the side-notch card. This adds a compact balance and observed-use section to both the quota and side-notch hover cards, with an on/off switch in Settings → Pacing & Telemetry.
Each account keeps a separate local total. Turning tracking off hides the credit rows and pauses recording; turning it back on keeps the total and starts a fresh baseline. Top-ups do not count as usage. The measure records sampled balance decreases, so top-ups can mask spending and expiry can also lower balances. It does not reconstruct a billing ledger. Existing quota calls supply the data; no extra requests or credential reads are added. Demo usage is synthetic and never changes saved totals.
Validation on macOS:
swift buildpassed.swift testpassed: 385 tests, 0 failures. New scenarios cover per-account totals, top-ups, duplicate/older readings, unavailable/invalid balances, pause/resume, relaunch persistence, demo isolation, and unreadable saved data.Scripts/make-app.shpassed, including strict ad-hoc signature verification.scripts/documentation.pyis absent from this repository.Native visual acceptance is blocked. The Mac is online, and candidate sources match the reviewed commit. The temporary capture helper compiled but could not enumerate the SwiftUI accessibility tree. One bounded helper correction produced the same failure, so capture attempts stopped. No screenshots were produced. Two-provider captures and a native on/off UI check remain required before release. The temporary helper was removed. The candidate was not installed or deployed.
Model(s): GPT-6.1-Sol (implementation), GPT-6-Luna (design review)
Harness: T3 Code / Codex