Repository navigation
Description
What variant of Codex are you using?
App / Web / long-running agentic workflows
What feature would you like to see?
I would like Codex and related long-running agent workflows to adopt an Intent-Preserving Task Continuity model in which passive lifecycle events never semantically equal user cancellation.
The core principle is:
Leaving is not cancelling. Sleep is not cancelling. Silence is not cancelling. Stop means Stop.
Today, long-running agent work can be interrupted by screen lock, app backgrounding, UI destruction, OS suspension, process restart, temporary connectivity loss, device handoff, executor failure, or similar lifecycle events. These should change the execution state of a task while preserving the user’s active goal.
Cancellation should remain a separate, explicit user-intent event.
A durable task model should therefore separate:
- User-intent state — active, explicitly stopped/cancelled, completed
- Execution state — running, paused, suspended, disconnected, checkpointed, waiting for approval, recovering, failed
Passive state transitions should preserve the user’s goal unless the user explicitly cancels it.
Expected product behavior
- Preserve a durable checkpoint when a long-running task is interrupted by passive device/app/OS events.
- Resume safely from the last valid checkpoint when execution becomes available again.
- Do not repeat completed actions after resume; use idempotent/replay-safe task boundaries.
- Keep explicit approval/consent gates for consequential actions after resume.
- Treat explicit Stop/Cancel as a distinct, durable user-intent event.
- Propagate an explicit Stop across devices/surfaces when the same task is active elsewhere.
- Do not silently convert interruption, executor failure, timeout, app backgrounding, or temporary disconnect into cancellation.
- Clearly report when a task is paused, suspended, expired, unrecoverable, or needs approval.
- Preserve accessibility-friendly continuity so a user does not need to reconstruct state manually after an interruption.
- Add regression tests for passive interruption vs explicit cancellation.
Why this matters
Long-running agents increasingly span mobile, desktop, web, remote execution, plugins, and cloud/browser environments. Without a strict distinction between intent and execution, the system can lose the user’s goal simply because one surface disappears or becomes unavailable.
That creates ambiguity around whether the agent should resume, stop, restart, duplicate work, or wait for approval.
A durable intent model makes recovery predictable and safer:
- preserve intent,
- checkpoint execution,
- resume exactly once,
- re-request approval only where needed,
- honor explicit Stop everywhere.
Related existing reports
I found several related issues, but none appears to capture this as a general cross-surface interaction principle:
- Remote follow-up queue stops dispatching when the controlling desktop client sleeps #33416 — Remote follow-up queue stops dispatching when the controlling desktop client sleeps
- [Regression] Remote CLI and /side can no longer coordinate Windows Desktop threads; updates break task continuity #41580 — Windows Desktop / remote coordination and update continuity regression
- [ChatGPT Work] Read-only tool calls can remain pending after manual stop without a terminal cancellation receipt #41681 — Read-only tool calls can remain pending after manual stop without a terminal cancellation receipt
- Codex Desktop: background turn reported completed/interrupted while JSONL continues without final_answer or task_complete #38972 — Background turn can be reported completed/interrupted while underlying execution continues
Those reports cover important specific failures. This proposal is the broader state-model and interaction rule that could unify how those classes of failures are handled.
Additional information
This proposal also has implications for mobile OS lifecycle integration, checkpoint/resume architecture, cross-device cancellation semantics, idempotency, consent gates, and failure reporting.
A detailed design report exists with state models, regression-test ideas, UI wording, and recovery semantics. I can provide a public-safe copy if maintainers want it.
Public attribution: LYNN
Activity
github-actions commentedon Sep 27, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action