Event-driven background task callbacks

Open 💬 2 comments Opened Jul 16, 2026 by xyjigsaw

What variant of Codex are you using?

CLI

What feature would you like to see?

Please allow Codex CLI to start a background process and return the session to idle. Waiting should require no model calls or token usage.

When the process exits, Codex should automatically notify and resume the original thread with its exit code and output. If another turn is active, the event can be queued until that turn finishes.

Desired flow:

Start background task → session becomes idle → zero-token waiting → task exits → original thread wakes up → Codex continues automatically

Claude Code references:

Additional information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗