[Feature Request] Native Quota-Aware Sleep Prevention & Autonomous Task Resumption for Codex / Desktop App

Problem Statement

When running autonomous coding workflows or complex multi-turn tasks with Codex and the ChatGPT Desktop App, sessions frequently hit the standard rolling rate limits (e.g. the 5-hour quota window).

This causes significant friction for developer workflows:

  1. Unattended Idling: When the quota clears, the desktop app sits idle waiting for manual input. If a developer starts an overnight coding session or steps away from their desk, the task halts permanently until someone manually opens the app and types “continue”.
  2. OS Sleep Interruptions: Laptops (macOS and Windows) enter system sleep during inactive pauses, dropping active sockets and halting background terminal jobs.
  3. Multi-Step Stalls: Multi-step engineering checklists cannot progress independently across rate limit resets without manual human hand-holding.

Proposed Native Features

1. Automatic Sleep Prevention (OS Wake-Lock)

  • During active token generation or rate-limit cooldown, the application asserts an OS wake lock:
    • macOS: IOPMAssertionCreateWithName (prevent system idle sleep while allowing display sleep).
    • Windows: SetThreadExecutionState (ES_SYSTEM_REQUIRED | ES_CONTINUOUS).
  • Automatically release the assertion when tasks are finished or manually paused.

2. Auto-Resume on Quota Replenishment

  • Read rate-limit reset metadata directly from response headers.
  • Display a native countdown timer in the client UI.
  • Provide a toggle: “Auto-resume when quota replenishes” (defaulting to enabled for unattended sessions).
  • Automatically re-trigger the pending prompt or continuation signal upon timer expiration.

3. Sequential Task List Progression (TASKS.md)

  • Allow Codex to bind to a project markdown checklist (e.g., TASKS.md or TODO.md).
  • When a task milestone is finished, Codex automatically updates the checklist (- [x]) and dispatches the subsequent item.

4. Out-of-Band Notification Integration

  • Webhook or mobile push notifications (via the ChatGPT mobile app push notifications, Discord, or generic webhooks) to notify users:
    • “Rate limit reached. Sleeping prevented. Resuming at 14:30.”
    • "Task #3 completed. 4/5 tasks finished."

Working Reference Implementation

This workflow has been validated in the open-source community via DeskResumer, an external supervisor app designed specifically for this use case:

  • Repository: github.com/Naqib2020/desk-resumer (search DeskResumer on GitHub)
  • Proof-of-Concept: Implements native macOS Menu Bar (SwiftUI) and Windows Tray wake locks, reliable cooldown countdown tracking, automated prompt injection, markdown task queue progression, and two-way remote bot management.

Native support within ChatGPT Desktop / Codex would transform long-running autonomous coding into a truly seamless, unattended experience.

The wake lock during active generation makes sense; I wouldn’t treat every quota cooldown as active work, though. Keep it while local work still needs to run, even if one model is quota-blocked.

If nothing local needs to run, releasing it should depend on having a reliable way to wake the machine and resume the task. Without that, retaining the lock is still needed for unattended continuation when quota recovers. A countdown in the app only helps while the app can execute; it doesn’t wake a sleeping laptop.

Hi @Naqib, sorry for the delayed reply, and thank you for sharing this suggestion and the reference implementation!

For sleep prevention, Settings → General → Prevent sleep while running is already available on macOS and Linux, as explained in our desktop app settings guide.

I understand the value of having unattended tasks pick up automatically after usage limits reset. I’ll pass your suggestions for quota-aware sleep prevention, automatic resumption, checklist progression, and notifications on internally. While we can’t provide implementation timelines or ongoing status updates, your feedback helps us improve the experience.

-GS