Codex App: scheduled and event-driven thread wakeups managed in the thread summary
What variant of Codex are you using?
Codex desktop app, including a workspace on a remote SSH host.
What feature would you like to see?
Add a tool that lets the agent register a bounded background watch for the current thread. This could combine the ergonomics of Claude's loop and scheduling tools with event-driven wakeups. The current turn can end after registration, and the thread stays available for other work while the job runs.
Triggers and limits
- Support a one-time scheduled wakeup, an interval for checking a condition, and events such as a background command succeeding or failing, a status file reaching a terminal state, or CI completing.
- Let the agent specify the check interval, trigger condition, and timeout or deadline. For recurring watches, also support a maximum number of checks or an explicit stop condition.
- Evaluate deterministic conditions in the app or runtime while the thread is idle. Unchanged checks should produce zero model calls and zero thread messages. A matching event, or a failure or timeout that the user opted to hear about, should add one visible message to the originating thread and wake the agent to continue.
- Include a watch ID, trigger reason, exit status when available, and a short summary or artifact link. Queue delivery if the thread is busy. Deduplicate by event ID and end one-shot watches after delivery so a completed job cannot repeatedly wake the thread.
Thread summary and sidebar
Use the existing thread summary panel as the primary place to view and manage these watches. Show each watch's condition, next check or scheduled time, deadline, last event, and status (waiting, paused, triggered, or timed out). Let users edit, pause, resume, or cancel a watch from there. A small badge in the thread list could make pending watches discoverable. When a watch fires, the actual notification should appear in the conversation so the user can see why the agent resumed.
Example
In a robotics workflow, we start a local solver, evaluation, and video-rendering pipeline that runs for 10–20 minutes. The agent can register: “Check the run status every minute, wake this thread when the pipeline succeeds or fails, and time out after 30 minutes.” Codex should spend no model calls on the unchanged checks. When the pipeline finishes, one follow-up can verify the result and link the video.
Related issues
- #32188 covers waking a thread when a background command exits.
- #29922 covers event sources such as logs, files, and CI.
- #28650 covers making thread automation tools available to the agent.
This request is for a unified Codex App workflow with both a model-callable registration tool and management in the thread summary, including quiet interval checks, explicit deadlines, and visible same-thread notifications.
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
- #62611
Powered by Codex Action