Skip to content

Feature request: Event-driven wake-up when a local process completes #46085

Open

Description

@ysyysy115

Codex Desktop can launch a long-running local process, but after the current turn ends, it cannot subscribe to that process’s completion and resume the associated thread or Goal. The only available workaround is periodic scheduled polling.
This is inefficient for multi-hour ML training, builds, benchmarks, simulations, and deployments. It introduces unnecessary scheduled runs, delayed completion handling, and repeated status checks.
Requested behavior:

  • Register a stable process handle when Codex launches a local command.
  • Associate that process with the current thread and Goal.
  • Keep the model inactive while the process is running.
  • When the process exits, wake the thread exactly once.
  • Resume with the exit code, completion time, and final stdout/stderr.
  • Persist enough metadata to recover after app restart or system sleep.
  • Distinguish normal completion, failure, interruption, and a missing process.
  • Support Windows, macOS, and Linux.
    Current workaround: a scheduled task checks the PID and output artifacts every 30 minutes. This should be an event-driven local-runtime capability rather than time-based polling.
    Claude Code already provides a more natural experience for this workflow by retaining ownership of long-running terminal processes and continuing when they complete.

Activity

  1. added
    enhancementNew feature or request
    appIssues related to the Codex desktop app
    sessionIssues involving session (thread) management, resuming, forking, naming, archiving
    on Sep 17, 2026
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

    appIssues related to the Codex desktop appautomationsenhancementNew feature or requestsessionIssues involving session (thread) management, resuming, forking, naming, archiving

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions