codex - 💡(How to fix) Fix Support injecting command output from background completion into the active Codex session [4 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#22003Fetched 2026-05-11 03:21:15
View on GitHub
Comments
4
Participants
2
Timeline
10
Reactions
0
Timeline (top)
commented ×4labeled ×3mentioned ×1subscribed ×1
RAW_BUFFERClick to expand / collapse

Is Codex missing a feature that you'd like to see? Feel free to propose it here.

Before you submit a feature:

  1. Search existing issues for similar features. If you find one, it rather than opening a new one.
  2. The Codex team will try to balance the varying needs of the community when prioritizing or rejecting new features. Not all features will be accepted.

See Contributing for more details.

What variant of Codex are you using?

CLI

What feature would you like to see?

Support a command-response injection path for background completions so an external watcher or orchestrator can deliver the completed command's output directly into the active Codex session as the next user turn, without requiring tmux send-keys or explicit polling. The intended workflow is:

  • a background process watches an inbox file or similar event source
  • when new output arrives, the watcher exits or emits a completion event
  • Codex receives that output as input automatically in the active conversation context
  • the session can then act on the injected content and continue the loop

This would make file-based or socket-based orchestration possible for agents that should wake Codex on process completion.

Additional information

I tested a file-watcher prototype where a background process writes JSONL output after new content arrives. In the current harness, the session does not wake up on its own when the watcher exits; output only appears after an explicit poll. A command-response injection mechanism would remove the need for tmux-driven key injection and make event-driven orchestration much cleaner.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING