Codex response just stops abruptly
[THINKING] [Tool: Bash] [Thinking]...
this repeats for a while and then the bot just stops doing anything. Not sure what happens - but gut feeling tells me when codex issues a plan it doesn't get streamed through - and it's asking for instructions from user.
Thanks for reporting this. Your gut feeling is likely correct.
What's happening: Codex is invoked with --dangerously-bypass-approvals-and-sandbox which should prevent plan mode. However, if Codex enters plan mode anyway (a Codex CLI bug), it waits for stdin input — but ductor closes stdin after sending the prompt. The process hangs silently until the 10-minute timeout kills it.
The [THINKING] [Tool: Bash] [Thinking]... pattern you're seeing is Codex emitting thinking/tool events before it stalls waiting for user confirmation.
Current state: This is a Codex CLI issue — the bypass flag should prevent this behavior. We've investigated how other projects (openclaw, ductor-dev-kanban, vibe-kanban) handle this and the proper fix requires switching to Codex's bidirectional JSON-RPC protocol with an open stdin pipe, which is a larger architectural change planned for a future release.
Workaround for now: If Codex stalls, send stop or /stop to abort the hung process and retry. The 10-minute timeout will also eventually kill it.
If this keeps happening frequently, please share which Codex version you're running (codex --version) — that would help us track whether specific versions are more affected.
Feel free to open a new issue if you hit other problems!