After long command finished, call hook to feedback

Resolved 💬 3 comments Opened May 20, 2026 by tastynoob Closed May 20, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What variant of Codex are you using?

CLI

What feature would you like to see?

When executing long-running commands, it's desirable for CodeX to stop automatically polling or stopping, and instead provide a timeout query and a hook feedback message indicating command completion. If the command doesn't complete within the timeout period, it should perform a self-check to see if it's stuck. After completion, it should automatically send a feedback message to CodeX, instead of continuously polling for completion status.

Additional information

_No response_

View original on GitHub ↗

3 Comments

github-actions[bot] contributor · 3 months ago

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

  • #22541
  • #22099

Powered by Codex Action

etraut-openai contributor · 3 months ago

Codex already supports hooks. Refer to this documentation for details.

You might also be interested in the experimental /goal feature. See here for details.

tastynoob · 3 months ago
Codex already supports hooks. Refer to this documentation for details. You might also be interested in the experimental /goal feature. See here for details.

Nonono, I don't mean to suggest that CodeX should support hooks, but rather a more user-friendly approach for handling long-running commands. The current hook mechanism doesn't fully meet my needs because hooks are invoked immediately when the model stops, rather than waiting until the command execution is complete.