Skip to content

Show Codex individual spend limits and their reset times - #15722

Merged
emirb merged 1 commit into
omacom:quattrofrom
Stegi56:codex-spend-control-limit
Oct 17, 2026
Merged

emirb merged 1 commit into
omacom:quattrofrom
Stegi56:codex-spend-control-limit

Conversation

@Stegi56

@Stegi56 Stegi56 commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Codex can return an individualLimit spend cap with no primary or secondary rate windows, as observed on a Business account. The collector ignored this snapshot, leaving the agents panel without a limits row.

Read the snapshot when present and append a Spend limit row after any existing rate windows. Calculate usage from used / limit, with remainingPercent as a defensive fallback for a zero cap, and preserve the server's reset timestamp for the existing countdown. The snapshot exposes no recurrence field, so the label assumes no monthly or weekly frequency. Add an English display translation key, following the repository's translation workflow.

Verification

  • Codex collector suite: 56 checks passed, including cap-only Business usage and a synthetic zero-cap case that uses 40% remaining to report 60% used without dividing by zero.
  • Existing agents panel suite: 36 checks passed.
  • Structural i18n, English-literal extraction, fallback, usage update, Codex notifications, QML text-format, and CLI checks passed.
  • Verified in the running agents panel with baseline and patched collector output from the signed-in Business account. The temporary usage record was restored after capture.
  • Earlier full-suite comparison found 17 environment failures shared with clean quattro, plus intermittent bar-drag/indicator-contract failures. The full aggregate was not rerun for the amendments; focused checks above passed.

Screenshots

Before After
Before: Codex Business panel without limits After: Codex Business panel showing Spend limit and reset countdown

@greptile-apps

greptile-apps Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Adds Codex individual spend caps to the agents panel.

  • Codex spend caps appear as a limit with their reported reset time.

No actionable issues were found. The previous review commit is not an ancestor of the current head, so this review covered the full PR diff. No previous review threads were supplied. Checks were limited to reading code; tests and the running panel were not independently verified.

Reviews (2) · Last reviewed commit: "Show Codex individual spend limits and t..." · Reviewed by Greptile

@Stegi56 Stegi56 closed this Oct 17, 2026
@Stegi56 Stegi56 changed the title Show a Codex Business seat's spend cap as a monthly limit Show Codex individual spend limits and their reset times Oct 17, 2026
@Stegi56 Stegi56 reopened this Oct 17, 2026
@Stegi56
Stegi56 marked this pull request as draft October 17, 2026 13:09
@Stegi56
Stegi56 force-pushed the codex-spend-control-limit branch 6 times, most recently from 54bc077 to 86583f9 Compare October 17, 2026 13:37
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Stegi56
Stegi56 marked this pull request as ready for review October 17, 2026 13:42
@emirb

emirb commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Thanks!

@emirb emirb added this to the 4.5 milestone Oct 17, 2026
@emirb
emirb merged commit f41da93 into omacom:quattro Oct 17, 2026
2 checks passed
dhh added a commit that referenced this pull request Oct 20, 2026
Re-apply #15722 to the Codex collector this branch moved onto the shared
module. An individual spend cap, as a Business seat reports with or without
rate windows, becomes a "Spend limit" meter titled for itself: the share of
the cap spent, from the amounts or the reported percentage for a zero cap,
and the reset time the app-server names. It is read once from the general
bucket, a model's, or the backward-compatible view, untrusted amounts cost
only that meter, and a kept cap goes stale and back to zero after its reset
like any window.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sogamoso added a commit to sogamoso/dotfiles that referenced this pull request Oct 28, 2026
Omarchy now shows the individual spend cap Codex reports on Business seats (omacom/omarchy#15722), which can come with no rate windows at all, so such a seat showed nothing. Plans take the names Codex's own /status uses (prolite is Pro 100, self_serve_business_prolite is Business Premium), and an app-server error is only called a sign-out when it is about auth.
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.

2 participants