Add cost summary display style#1741
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 230ddc587a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Codex review: needs maintainer review before merge. Reviewed June 24, 2026, 1:03 PM ET / 17:03 UTC. Summary Reproducibility: not applicable. This is a feature PR, and the inspected screenshots plus source diff demonstrate intended UI states rather than a bug reproduction path. Review metrics: 2 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land this only if maintainers accept the new display-style preference and default behavior; otherwise narrow or close the feature direction before merge. Do we have a high-confidence way to reproduce the issue? Not applicable. This is a feature PR, and the inspected screenshots plus source diff demonstrate intended UI states rather than a bug reproduction path. Is this the best way to solve the issue? Yes, implementation-wise: the enum, centralized display gates, upgrade-preserving migration, and focused tests are a maintainable shape. Product acceptance of the new persisted preference remains the maintainer decision. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ada3660e9d61. Label changesLabel justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
230ddc5 to
ff7840b
Compare
ff7840b to
87edff1
Compare
87edff1 to
0ff82c7
Compare
0ff82c7 to
1917d1a
Compare
Summary
Adds a user preference for how CodexBar displays cost summaries when “Show cost summary” is enabled.
Users can now choose:
Changes
CostSummaryDisplayStyleto settings and persists it inUserDefaults.Display stylepicker under Settings → Usage → Show cost summary.Why
When cost summaries were enabled, CodexBar could show both the inline cost dashboard and the Cost submenu at the same time. This adds an explicit choice so users can keep the style they prefer and avoid redundant UI.
Validation
swift test --filter StatusMenuTestsswift test --filter ProviderInlineDashboardModelTestsswift test --filter OpenAIAPIMenuCardModelTestsswift test --filter StatusMenuPersistentRefreshTestsmake checkgit diff --checkScreenshot
Before:

After:

when inline selected
when submenu selected

Display style in setting
