Skip to content

Show Codex account in quota warnings#973

Open
raflyazf wants to merge 2 commits into
steipete:mainfrom
raflyazf:codex/quota-warning-account-copy
Open

Show Codex account in quota warnings#973
raflyazf wants to merge 2 commits into
steipete:mainfrom
raflyazf:codex/quota-warning-account-copy

Conversation

@raflyazf
Copy link
Copy Markdown

@raflyazf raflyazf commented May 16, 2026

Summary

  • Include the snapshot account email in Codex quota warning events when personal info is visible.
  • Add the account to the notification body so threshold alerts identify which Codex account crossed the limit.
  • Keep notification copy unchanged when no account is available or personal info is hidden.

Why

Codex quota warnings can be triggered by an account that is not currently active in the UI. Without the account in the notification copy, users cannot tell which account crossed the 50% or 20% threshold, which makes multi-account usage harder to manage.

Test Plan

  • swift build (run with local CLT compatibility workaround for MenuHighlightStyle; full Xcode is not installed on this machine)
  • .build/lint-tools/bin/swiftformat Sources Tests --lint
  • DYLD_FRAMEWORK_PATH=/Library/Developer/CommandLineTools/usr/lib .build/lint-tools/bin/swiftlint --strict --quiet
  • swift test --filter QuotaWarningNotificationLogicTests (blocked locally: Command Line Tools toolchain cannot load the Swift Testing Testing module)
  • swift test --filter UsageStoreSessionQuotaTransitionTests (blocked locally: Command Line Tools toolchain cannot load the Swift Testing Testing module)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant