Codex desktop can hang when two long-running tool calls start in parallel in one turn
Open 💬 2 comments Opened Mar 10, 2026 by Nightnzh
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
Bug Summary
Codex desktop can lose tool outputs and leave a turn permanently unfinished when two long-running tool calls are started in parallel in the same turn.
Environment
- Codex desktop app
- WSL enabled
- Workspace:
/mnt/d/codex_app/the_answer_2 - Shell shown in UI: PowerShell
- Agent tool execution used bash/WSL
- Date observed: March 10, 2026
- Thread ID:
019cd7af-bd08-7f00-be1f-f75845805c4d - Stuck turn ID:
019cd81a-8a4e-7832-a644-965a4e2da267
Repro Steps
- Open a repo in Codex desktop.
- Have the agent run two long-running verification commands in parallel in the same turn:
flutter testflutter analyze
- Wait for both tool calls to start.
Expected
- Each tool call returns
function_call_output - The agent receives both results
- The turn emits a final answer and
task_complete
Actual
- At
2026-03-10T14:20:57Z, the turn emitted twofunction_callevents forflutter testandflutter analyze - No later
function_call_outputarrived for either call - No
task_completeevent was emitted - The session appeared stuck indefinitely
Evidence
- Last agent message before the hang:
分類功能主流程已通。現在跑完整 flutter test 與 flutter analyze,確認沒有回歸與 lint 問題。- Rollout file:
C:\Users\love1\.codex\sessions\2026\03\10\rollout-2026-03-10T20-19-04-019cd7af-bd08-7f00-be1f-f75845805c4d.jsonl- The rollout stream shows both tool calls being issued, then no tool outputs and no
task_complete - A later session in the same repo completed successfully, so the repository itself was not in a broken state
Important Non-Causes
- No lingering
flutterorgitsubprocesses were present when inspected - The repository later verified cleanly in a separate session
Failed to create shell snapshot for powershell: Shell snapshot not supported yet for PowerShellappeared in logs but does not look like the direct cause- This looks more like tool transport / turn orchestration failure than project code failure
Likely Trigger
Parallel long-running tool calls in one turn, especially flutter test plus flutter analyze
2 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I checked the suggested duplicates.
#13475looks related, but not identical. That issue reports a turn hanging after a successfulfunction_call_output. In my case, the failure happens earlier: the turn emits two long-running tool calls in parallel (flutter testandflutter analyze), then neither tool call ever produces afunction_call_output, and the turn never reachestask_complete.#13987does not look like the same issue. That one is specific to Windowsread-onlysandbox mode when Codex is running as an MCP server. My repro was in Codex desktop with WSL enabled, not MCP server mode, and not aread-onlysandbox repro.So
#13475seems like the closest related issue, but this report adds a distinct trigger condition: parallel long-running tool calls in the same turn.