Allow scheduled automations to run in an existing thread
Feature request: allow scheduled automations to run in an existing thread
What feature would you like to see?
Please add support for scheduled automations that can target an existing Codex Desktop thread and append a new user turn to that same thread at the scheduled time, instead of always creating a new thread.
For example, from an active thread I would like to say:
Run this routine tomorrow at 10:00.
At 10:00, Codex should resume this same thread, append the scheduled instruction, and run the agent turn here.
Why this matters
Some recurring workflows are not just stateless prompts. They are operational routines that depend on the accumulated context of an existing thread:
- prior decisions and corrections;
- project-specific documentation already read and interpreted;
- memory of fragile browser/tooling behavior;
- user supervision history;
- a prepared workspace;
- authenticated browser flows;
- recurring manual checkpoints.
When a scheduled automation always starts in a fresh thread, the run may technically have the same prompt, but it loses much of the practical context that made the workflow reliable in the first place.
Example use case
I have a recurring assisted operational routine that uses:
- a local project workspace;
- internal authenticated web systems;
- a shared mailbox;
- browser-based workflows;
- local Markdown records and checklists.
When I run the routine manually in an existing thread, it works much better because the thread already contains the relevant operational context, previous corrections, and known environment pitfalls.
When the same routine runs as a scheduled automation in a new thread, it is more likely to fail or stop early because it has to reconstruct context and tool/browser state from scratch.
Expected behavior
Codex Desktop should allow an automation to be attached to an existing thread.
At the scheduled time, Codex should:
- open or resume the target thread;
- append the scheduled instruction as a new user turn;
- run the agent turn in that same thread;
- show the result in the same conversation history;
- handle overlaps safely if the thread is already running.
Suggested UX
Possible UI/API options:
- “Schedule in this thread”;
- “Run this prompt in this conversation at…”;
- an automation field such as
target_thread_id; - a visible indicator in the thread showing upcoming scheduled runs;
- an option to cancel or edit the schedule from the thread.
Overlap behavior
If the target thread is already busy when the scheduled run fires, Codex could:
- wait until the current turn finishes;
- skip the run and leave a visible note in the thread;
- ask the user before starting;
- or queue the scheduled turn.
The important point is that it should not silently create a separate thread and lose the operational context.
Relationship to existing automation behavior
The current “new thread per automation run” model is useful for stateless tasks.
This request is for a complementary mode: thread-targeted automations for recurring, context-heavy, human-supervised workflows.
Acceptance criteria
A minimal implementation would allow:
- selecting an existing thread as the automation target;
- scheduling a future run against that thread;
- appending the scheduled prompt to the same conversation;
- showing success/failure in that same thread;
- avoiding duplicate parallel runs if the thread is already active.
A stronger implementation would also preserve or restore relevant workspace/tool context where possible, especially for browser-based workflows.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗