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:
- 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”.
- OS Sleep Interruptions: Laptops (macOS and Windows) enter system sleep during inactive pauses, dropping active sockets and halting background terminal jobs.
- 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).
- macOS:
- 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.mdorTODO.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.