Repository navigation
Conversation
Fixes steipete#5200 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
🦞👀 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. |
Codex Review Summary: ✅ CompletedThis 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. |
|
Codex review: needs real behavior proof before merge. What this changesThis PR displays Claude Platform prepaid balances in widgets using the existing balance resolver and optional-credit visibility setting. Example: Claude Platform reports $42.50 in prepaid credits with optional credits enabled.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains Keep this PR open: it addresses a current widget display gap with a focused change, and source review found no definite introduced defect. Reviewed head: Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherUsageStore converts provider measurements and display preferences into shared JSON snapshots, which the WidgetKit extension reads to render quota and balance information. flowchart LR
A[Claude Platform measurement] --> B[UsageStore]
C[Display preferences] --> B
B --> D[Shared balance resolver]
D --> E[Widget snapshot JSON]
E --> F[WidgetKit balance and quota views]
Technical reviewBest possible solution: Use the existing snapshot balance field and shared formatter while retaining grant quotas and honoring optional-credit visibility. Do we have a high-confidence way to reproduce the issue? Fetched main excludes Claude Platform from both balance publication and rendering, establishing the reported omission directly from source without executing tests or probing an account. Is this the best way to solve the issue? The implementation uses the existing owners and format, preserves quota selection, and introduces no parallel balance calculation or setting. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a26ca57b5186. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 27, 2026, 3:28 PM ET / 20:28 UTC. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Widget render proofThe locally built widget extension is ad-hoc signed, so WidgetKit won't render it on this machine, and the app group belongs to the upstream team. Instead, these PNGs come from rendering the real
The grant lanes stay as the headline, and the Balance row appears only when optional credits are visible. A small tile has room for one row, so it keeps the grant lane there ("+1 more"): This PR's second commit ( 🤖 Generated with Claude Code |
Apply current prepaid-credit visibility to error-recovery projections while preserving quota readings and measurement time.



Fixes #5200
Summary
balanceTextfor Claude Platform from its prepaid credit balance (same resolver the menu bar uses).WidgetBalanceFormatter.providerBalanceaccepts.claudeplatform, so the widget renders a "Balance" row; credit-grant lanes keep the headline.Commands
swift test --filter "ProviderWidgetAvailabilityTests|WidgetEmptyProjectionTests|StatusItemBalanceDisplayTests"— passedswiftlint lint --strict,swiftformat --lint Sources Tests— cleanmake testnot run locally.🤖 Generated with Claude Code