You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add a configurable “reserve remaining usage” / “stop before limit” control for Codex (desktop app) #57406
Let users set a threshold (slider or checkbox + percent, e.g., 1–20%). When remaining weekly allowance reaches that threshold, Codex should warn and stop running new tasks by default (optionally “override once”). This prevents getting fully locked out mid-work and makes capacity planning predictable.
+1 on having an explicit pre-lockout buffer before hitting 0%. When you're running longer coding tasks, seeing your remaining 5-hour and weekly percentages before starting a new run makes capacity planning much safer than finding out mid-edit.
While there's no built-in stop threshold yet, on Windows I keep a small local monitor open that reads the local App Server rate-limit windows and reset clocks side by side so I can pause manually before dipping below ~15% (disclosure: I built CodexFuse for that exact workflow — there's also a simulated-data browser demo, though having a native threshold control inside Codex Desktop would still be much cleaner).
This is a useful safeguard. I suggest extending it from a warning or "stop new tasks" setting to an account-wide emergency allowance reserve, covering both 5-hour and weekly limits.
User scenario: Several autonomous conversations and subagents are already running. A user reserves, for example, the final 10% of their 5-hour allowance for urgent interactive work. Merely blocking new tasks does not protect this reserve if existing tasks continue consuming quota.
Proposed behavior
Set separate configurable reserve thresholds for the 5-hour and weekly windows (e.g., 10%).
When either threshold is reached, pause further model requests from all non-exempt running tasks, background tasks, subagents, retries, and automatic resumptions, preserving resumable checkpoints.
Keep manual urgent work available via an explicit one-time override; no model or background task can grant itself this exception.
Show which tasks were paused and why. Release the pause only on an explicit user action or when sufficient allowance becomes available according to user preferences.
Enforce this as a shared account-level control across supported clients. Use authoritative quota readings when possible; make conservative behavior and any measurement uncertainty transparent.
Acceptance criterion: If multiple autonomous threads are running when the 5-hour allowance reaches the user-set 10% reserve, no ordinary thread can dispatch another model request, but a specifically authorized urgent interaction can still run within the platform's existing limits.
This is about preserving existing allowance, not increasing it or bypassing rate limits. Related per-task budgets: #45536.
Activity
mark-iap commentedon Nov 13, 2026
+1 on having an explicit pre-lockout buffer before hitting 0%. When you're running longer coding tasks, seeing your remaining 5-hour and weekly percentages before starting a new run makes capacity planning much safer than finding out mid-edit.
While there's no built-in stop threshold yet, on Windows I keep a small local monitor open that reads the local App Server rate-limit windows and reset clocks side by side so I can pause manually before dipping below ~15% (disclosure: I built CodexFuse for that exact workflow — there's also a simulated-data browser demo, though having a native threshold control inside Codex Desktop would still be much cleaner).
LuckyDay1221 commentedon Nov 16, 2026
This is a useful safeguard. I suggest extending it from a warning or "stop new tasks" setting to an account-wide emergency allowance reserve, covering both 5-hour and weekly limits.
User scenario: Several autonomous conversations and subagents are already running. A user reserves, for example, the final 10% of their 5-hour allowance for urgent interactive work. Merely blocking new tasks does not protect this reserve if existing tasks continue consuming quota.
Proposed behavior
Acceptance criterion: If multiple autonomous threads are running when the 5-hour allowance reaches the user-set 10% reserve, no ordinary thread can dispatch another model request, but a specifically authorized urgent interaction can still run within the platform's existing limits.
This is about preserving existing allowance, not increasing it or bypassing rate limits. Related per-task budgets: #45536.