Skip to content

Intent-Preserving Task Continuity — explicit Stop semantics for long-running agents #48596

Open

Description

@emailforsteph-a11y

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:

  1. preserve intent,
  2. checkpoint execution,
  3. resume exactly once,
  4. re-request approval only where needed,
  5. 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:

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

  1. added
    enhancement
    app
    session
    on Sep 27, 2026
  2. github-actions commented on Sep 27, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appenhancementsession

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions