Repository navigation
[Windows Desktop][GPT-5.6 Sol] Turn stays running indefinitely after a successful tool result with no post-tool continuation #32714
Description
What version of the Codex App are you using?
Codex / ChatGPT Desktop package 26.707.3748.0.
Which model and reasoning effort were you using?
- Model:
gpt-5.6-sol - Reasoning effort:
ultra/ Extra High
What platform is your computer?
- Windows 11 build
26200.8655x64 (the Windows registry reports the localized product name as Windows 10 Home China, display version 25H2) - Codex Desktop, local Windows workspace
What issue are you seeing?
On a long-running Codex Desktop thread, a local tool call completes successfully and its result is recorded, but the turn does not continue to the next model step. The Desktop UI continues to show the task as running indefinitely. There is no subsequent assistant reasoning event, tool call, progress update, completion event, or visible error. The turn resumes only after the user manually aborts it and sends another message.
This is not a slow or hung shell command. In the most recent occurrence, the tool completed a 22-test suite successfully in about one second. The tool result was persisted at 2026-07-13 11:07:35 CST, and there were no further task events until manual abort at 12:24:07 CST, a silent interval of about 76 minutes 32 seconds.
The same thread has shown five prolonged occurrences after switching to GPT-5.6 Sol:
| Occurrence | Silent interval after the last successful tool result |
|---|---|
| 2026-07-10 #1 | about 87m 58s |
| 2026-07-10 #2 | about 32m 28s |
| 2026-07-10 #3 | about 72m 49s |
| 2026-07-11 | about 30m 46s |
| 2026-07-13 | about 76m 32s |
In all five cases, there was no automatic timeout or recovery before the user aborted the turn.
Regression timing
The affected thread originally used GPT-5.5. Its recorded model context switched to gpt-5.6-sol with ultra reasoning on 2026-07-10. All five prolonged post-tool stalls occurred after that switch. This is a strong correlation, although it does not prove whether the root cause is the model service, the Desktop app, or the model/app orchestration boundary.
Steps to reproduce
The issue is intermittent rather than a deterministic minimal reproduction, but the observed pattern is:
- Open a large, long-running local thread in Codex Desktop on Windows.
- Use GPT-5.6 Sol with Extra High/Ultra reasoning.
- Ask Codex to perform a multi-step task involving local tools.
- Let a tool call finish successfully and return its result.
- The UI continues to show the turn as running, but no next model/tool event is emitted.
- Wait: the turn remains in this state for tens of minutes with no timeout or error.
- Manually abort the turn and send a follow-up message; the thread becomes responsive again.
Large tool output appears to increase the likelihood. A later occurrence happened after a command completed in 1.3 seconds but returned a large, truncated JSON-derived output. However, smaller successful test output also triggered the problem, so large output is not required.
Expected behavior
After a tool returns successfully, Codex should promptly schedule the next model step and continue the task.
If continuation cannot be scheduled or the model request does not return, the app should:
- surface a clear error;
- apply a bounded timeout;
- retry safely; or
- offer a recovery action such as retry, checkpoint, or continue in a fresh thread.
It should not remain in an indefinite running state with no events.
Actual behavior
- Tool execution finishes successfully.
- The tool result is present in the local rollout record.
- No subsequent assistant or tool event is recorded.
- The UI remains in the running state.
- No active report-rendering/test process remains in the background.
- Only manual abort ends the stuck turn.
Diagnostic identifiers
- Thread ID:
019e9d19-aea0-7633-bd71-3274bdf7450e - Latest affected turn:
019f5961-2952-7dd1-a002-c23051669ac5 - Latest tool result timestamp:
2026-07-13 11:07:35 CST - Manual abort timestamp:
2026-07-13 12:24:07 CST - Context usage near the latest occurrence:
285,957 / 353,400(about 81%) - Automatic context compactions in this thread:
19
For the latest occurrence, automatic compaction happened only after the manual abort, so compaction was not the immediate trigger. The very large and repeatedly compacted thread may still be a contributing factor.
The local logs also repeatedly contain this warning around GPT-5.6 activity:
codex_protocol::openai_models: Model personality requested but model_messages is missing, falling back to base instructions. model=gpt-5.6-sol personality=friendly
I am including this only as a potentially relevant signal, not claiming it is the root cause.
Related issues
- Codex CLI stopped after successful command execution and interrupted the conversation #28231: successful command execution followed by an interrupted Codex CLI conversation.
- Codex Desktop can remain stuck showing "thinking/running" even after the task has completed #20754: Codex Desktop remains in thinking/running state after work has completed.
- Codex Desktop accepts prompt but UI stays stuck in Thinking; Stop fails and turn can become invisible after restart #24287: Codex Desktop active-turn and trace state can become frozen or detached.
This report differs from a purely visual spinner problem because the persisted rollout contains the successful tool result but no subsequent assistant/tool event. Local inspection could not determine whether the Desktop app failed to send the continuation request or whether the service-side continuation request remained pending.
Privacy note
No project content, API keys, credentials, or raw session logs are attached. The identifiers and timing information above are provided so OpenAI can locate the affected telemetry internally.
Activity
github-actions commentedon Jul 13, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Broken pipe#32555Powered by Codex Action
QXUAN commentedon Jul 13, 2026
I am experiencing what appears to be the same issue on the Codex Windows Desktop app.
In my case:
rg -nrepository search.Get-Process rg -ErrorAction SilentlyContinuereturned no process, confirming thatrg.exehad already exited.logs_2.sqliteandlogs_2.sqlite-waldid not grow while the task appeared stuck.This strongly resembles a missing post-tool continuation rather than a slow or hung local command.
Environment:
Luohui1981 commentedon Jul 14, 2026
I have additional evidence from 2026-07-13 and 2026-07-14. The issue is no longer limited to the original long thread; I observed the same pattern across multiple Codex Desktop windows/threads and at least two local workspaces on Windows.
Current affected Codex Desktop package:
26.707.62119.I inspected local rollout JSONL records from 15 rollout files under
sessions/2026/07/13andsessions/2026/07/14. There were 28 event gaps longer than 15 minutes. Some of those were ordinary idle periods after completed tasks, but several were clean post-tool stalls ending only when I manually aborted the turn.Clean samples, all times in CST:
019f5942-5546-7a60-ae2b-b9164bc13bcf, turn019f5961-ce9d-7b70-b56c-bcfa7a9bd0becustom_tool_call_output{}019f5942-5546-7a60-ae2b-b9164bc13bcf, turn019f595e-9978-76f0-a2f1-32af8be0b3abcustom_tool_call_output{}019f5e47-420d-7021-a6d8-0f115e34474e, turn019f5e67-8d5a-7360-bdfe-7f8b3bae9b19custom_tool_call_output019f5e47-420d-7021-a6d8-0f115e34474e, turn019f5ec8-73e8-7932-a7b2-8a93e7385738custom_tool_call_output019f5e47-420d-7021-a6d8-0f115e34474e, turn019f5eef-4e26-7d32-abb7-866fb0e7bb71custom_tool_call_outputThe 2026-07-14 12:50 sample is especially clean. The final tool output included:
After that tool result, there was no assistant continuation, no next tool call, no final response, and no visible timeout/error until manual abort.
Additional observations:
gpt-5.6-sol; local app logs showcodex.turn.reasoning_effort=xhighfor the related activity.{}, after a short validation result, after a shell parser error, and after larger truncated output.This makes the likely failure boundary look like post-tool continuation scheduling or post-tool response handling, rather than shell/tool execution itself.
Suggested mitigations:
I am still not attaching raw logs or project content for privacy reasons, but the thread/turn identifiers above should be enough to locate the relevant telemetry internally.
dlpuzhangyue commentedon Jul 14, 2026
+1 😢
Sirius19930603 commentedon Jul 14, 2026
Additional Windows Desktop occurrence with a more specific
exec/ nested-tool timing signal (originally reported as #33036):26.707.9981.010.0.26200execcell awaited a nested localshell_commandconfigured withtimeout_ms: 10000.0.2s.3,806.8s.Script running with cell ID <redacted>.wait(cell_id=..., yield_time_ms=1000)reported the cell as already completed.Sanitized timeline:
This supports the same user-visible failure described here: a successful local tool result does not produce a bounded post-tool continuation, error, or recovery path. It also suggests investigating the boundary between nested-tool completion, code-mode cell closure/yield, and turn-runner notification delivery.
No private paths, project content, account identifiers, or raw session logs are included.
hewzhew commentedon Jul 14, 2026
Additional matching occurrence from the current Windows Desktop package, with a transport-level distinction:
26.707.9981.010.0.26200gpt-5.6-sol, Extra High0.9s, and the outer exec cell reported completion.AppServerConnectionremained established overstdio; there was no app-server disconnect/reconnect or connection error during the stall.ResizeObserver loop completed with undelivered notifications, but I do not know whether that warning is causal.This occurrence therefore does not look like a hung shell process or a local app-server transport disconnect. It is consistent with a failure or indefinite wait after tool completion at the post-tool continuation / turn-runner boundary.
No project names, local paths, transcript content, account identifiers, proxy details, or raw logs are included.
ham-zax commentedon Jul 14, 2026
same but with cli +
hewzhew commentedon Aug 10, 2026
New A/B reproduction on Windows 26.803.5235.0: nested tool completes, outer turn remains active
I reproduced the same post-tool continuation stall on the current Windows Desktop package, with a useful same-operation comparison and renderer timing.
Environment
OpenAI.Codex 26.803.5235.00.147.0-alpha.6.5gpt-5.6-solxhighStalled occurrence
The operation was a short, read-only PowerShell fetch of the official Codex troubleshooting page, awaited by a code-mode
execcell.Sanitized persisted timeline:
Between the persisted tool output and the interrupt, the rollout contained no subsequent:
agent_reasoningtask_completeThe app-server remained responsive. At interruption time, Desktop logged:
turn/interrupt: 11 msthread/list: 1 msThe primary renderer logged 71 instances of:
during the 90-second silent interval. The UI simultaneously showed an outer “Running” tool card while the nested command card already showed successful completion.
Same-operation successful comparison
In the next turn, I ran the equivalent official-document fetch again:
That successful interval had 17 ResizeObserver errors rather than 71. This does not prove the ResizeObserver loop is causal, but it provides a correlated renderer signal and confirms the tool type/URL itself is not deterministically hanging.
Diagnostic boundary
This sample still cannot distinguish:
Useful telemetry would record, after
custom_tool_call_output:Immediate repeat with a minimized command
I reproduced the same boundary again with this short read-only command:
In this occurrence:
The same command has also completed and resumed normally in another occurrence, so it is a useful intermittent trigger, not evidence that
Invoke-WebRequest, the URL, or the network request is itself the root cause. The more precise failure boundary remains: inner command completes → tool result is returned → post-tool continuation does not arrive promptly → outer tool card remains Running.All thread IDs, turn IDs, paths, prompts, command output, account data, raw logs, and screenshots are intentionally omitted.
a1m67 commentedon Aug 17, 2026
Additional reproductions — fresh-session, medium-reasoning, and 15.5h stall
Adding three independent reproductions that match this issue's signature closely: a tool call returns and its result is persisted, but the turn never proceeds to the next model step. No visible error, timeout event, or exception is emitted; the turn remains active until it is manually interrupted and a new message is sent.
26.803.81509, Windows 10, modelgpt-5.6-sol,model_reasoning_effort = medium,wire_api = responses, custom provider.turn_aborted,reason=interrupted) and send a new message. The thread then resumes normally.Case C — 15.5-hour stall with no auto-recovery (2026-08-12)
019ff559-870a-79d1-a702-d0a3738b022d019ff579-6577-7d32-9525-ad740b3437e8exectool calls. After anexecresult was returned and persisted, the turn stopped making progress and did not recover until manually interrupted the following day.Event chain (timestamps UTC):
started_at=1786529801)custom_tool_call_output(exec) →"Script completed, Wall time …"+token_countagent_reasoningcustom_tool_callexeccustom_tool_call_output→"Script failed, Wall time 5.x seconds"+token_countcustom_tool_callexec+patch_apply_endcustom_tool_call_output→"Script completed"+token_countcustom_tool_call_output(exec) →"Script running with cell ID 66, Wall time 11.0 seconds"event_msgtoken_countagent_reasoning, noreasoning, no follow-up tool call, no visible error, and no timeout event.turn_aborted,reason=interrupted,duration_ms=55664453— manual interruptThe
exectool returned a valid tool result andtoken_countwas emitted, but the agent never scheduled any follow-up action for more than 15 hours — no additional reasoning, no wait/poll of the returned cell, no subsequent tool call, and no completion/error event.Regardless of the underlying cell state, the turn itself stopped making progress and did not self-recover.
Case A — Stall after a
wait_agentresult (2026-08-13)019ffa76-d3e0-7711-a413-982c92e2b08ewait_agenttwice. Both waits returned normally with timeout results. After the secondfunction_call_outputwas persisted, the parent turn never continued.Event chain (timestamps UTC, from the rollout JSONL):
function_callspawn_agentfunction_callwait_agent,arguments={"timeout_ms":20000}function_call_output→{"message":"Wait timed out.","timed_out":true}function_callwait_agent,arguments={"timeout_ms":30000}function_call_output→{"message":"Wait timed out.","timed_out":true}event_msgtoken_countagent_reasoning, noreasoning, no next tool call, notask_complete, and noturn_aborted. The rollout file ends here.The parent received a normal
function_call_outputfromwait_agent, but no post-tool continuation was emitted afterward.Case B — Stall after a plain
execresult on the first message of a fresh session (2026-08-17)01a00ea9-9d8e-7643-9753-f0cbaa2a681201a00ea9-a9f7-7493-afb4-cb6a8e104732exectool, which completed successfully in approximately 0.9 seconds. The turn then stalled immediately afterward.Event chain (timestamps UTC, from the rollout JSONL):
session_meta/task_started— turn beginsuser_message— first message of this sessionagent_reasoningagent_messagecustom_tool_callexeccustom_tool_call_output→"Script completed\nWall time 0.9 seconds"event_msgtoken_countagent_reasoning, noreasoning, no next tool call, no visible error, and no timeout event.turn_aborted,reason=interrupted,duration_ms=1120804— manual interruptAfter the interrupt, sending a new
"ncotinue"message resumed the thread normally.This occurrence is notable because the stall happened on the first user message of a fresh session. Therefore, a very large context window or many previous auto-compactions are not required to reproduce the issue, although they may still affect the probability of occurrence.
Recurrence after recovery
Approximately 22 minutes after the interrupt-and-resume recovery, the same thread stalled again.
The later turn produced the same signature:
execreturned"Script completed, Wall time 10.2 seconds";event_msgtoken_countwas emitted at08:49:07.480Z;This indicates that interrupt + resume recovers the currently stuck turn, but does not prevent the failure from recurring later in the same thread.
Shared signature
Across these reproductions:
A tool call returns and its output is persisted as
function_call_outputorcustom_tool_call_output.A
token_countevent is emitted.The expected post-tool continuation does not appear:
agent_reasoning;reasoning;task_complete;The affected turn remains active indefinitely until manually interrupted.
A manual interrupt followed by a new user message restores the thread, but the issue may recur later.
What I could rule out
Not a provider-side streaming/network stall. I verified directly from the custom provider's server-side request logs that no subsequent model request was received after the tool result. Combined with the local rollout ending at
function_call_output/custom_tool_call_outputfollowed bytoken_count, this strongly indicates that the post-tool continuation request was never dispatched to the provider, rather than a request being sent and then hanging mid-stream.Not a global provider/config failure. While one conversation is stalled, newly opened conversations in the same Codex Desktop instance, using the same provider and configuration, continue to send requests and operate normally.
Not specific to one tool type. I reproduced the same failure after both
wait_agent(function_call_output) and a normal shellexec(custom_tool_call_output).Not dependent on a long-running or heavily compacted thread. Case B reproduced on the first user message of a fresh session.
Reproduction / detection hint
The issue is intermittent, but the cleanest local signal is:
In my reproductions, waiting did not cause the turn to recover, including one occurrence lasting approximately 15.5 hours.
At present, the only reliable recovery I have found is:
"cotinue";Happy to provide additional sanitized rollout JSONL excerpts or timestamps if useful.
guiguiluo commentedon Aug 28, 2026
Cross-surface reproduction on ChatGPT Web — steering the still-running turn temporarily wakes it, then it stalls again
I am seeing what appears to be the same post-tool continuation failure on ChatGPT Web, not Codex Desktop.
Environment
Observed behavior
This happens during a long multi-step mathematical modeling task that uses the built-in Python tool repeatedly.
The failure pattern is very consistent:
So this is not just a stale spinner after a completed turn, and it is not a hung Python execution: the Python result is already present before the stall, and the still-running task can be temporarily revived by a user steer without aborting it.
Why this reproduction may be diagnostically useful
The distinctive sequence is:
This makes the failure look more like a missing/failed automatic continuation or wake/scheduling transition after tool completion than a tool process that is still running.
The fact that a new user steer can revive the same still-running task may help distinguish this from cases where the model request itself is permanently dead or the UI is only visually stale.
Expected behavior
After Python/tool output is returned, the task should automatically continue to the next reasoning/model step.
If the post-tool continuation fails to start or returns no events, ChatGPT should detect that condition and either safely retry, surface an actionable error/recovery control, or explicitly transition out of the running state. A user should not need to repeatedly send manual “continue” messages every few tool calls to keep a Pro task alive.
Impact
For long Pro tasks using Python, this currently makes autonomous multi-step execution unreliable: the task can progress only a few steps at a time before requiring another manual kick.
I have a screenshot showing the Activity panel with completed Python output followed by a long-running stall and can provide additional session/feedback identifiers privately if maintainers need them.
firecrauter commentedon Sep 1, 2026
I encountered what appears to be the same failure mode described in this issue. I cannot currently claim deterministic reproduction because I completed the original task using a workaround, the project state has since changed, and rerunning the same prompt would not be an equivalent test.
In-app feedback
01a05b1e-aa7a-77a2-a50d-0db7e010123401a05b1e-aa7a-77a2-a50d-0db7e0101234Environment
26.825.6671.0gpt-5.6-solxhighI have also encountered similar stalls with Sol at Max reasoning effort, although the detailed timings below are from the
xhighoccurrence.Observed behavior
Initial attempt
Turn ID:
01a05b1e-e7b1-75b0-8c81-519a40e1b897Follow-up attempt
Turn ID:
01a05b23-d1e6-7041-9ef3-0ea1f0487348continua.The available session metadata does not show a tool remaining active. This looks more like a missing model continuation after tool results than a hung shell command.
Earlier occurrence
I experienced a similar problem several weeks earlier. After approximately 3–7 reasoning/toolchain steps, Codex could remain stuck for up to 30 minutes, attempt to reconnect, and then become stuck again.
That older reconnect behavior may also be related to #23807.
Workarounds
The following workarounds helped me:
For the same underlying task, the plan-first approach allowed Codex to finish successfully. However, because the task is now completed and its project state has changed, I cannot faithfully rerun the original prompt to determine whether the failure is consistently reproducible.
Related public report
Another user described a exact similar “thinking loop” behavior on Reddit:
" Codex stuck in a 5-step "thinking" loop every single prompt "
https://www.reddit.com/r/OpenaiCodex/comments/1w24mxa/codex_stuck_in_a_5step_thinking_loop_every_single/
Expected behavior
After receiving tool results, Codex should either continue reasoning/execution, complete the task, or return an explicit actionable error instead of remaining active without further events.
AI assistance disclosure
This comment was drafted with AI assistance using my description and local Codex session metadata. I reviewed it before posting and confirm that it accurately represents what I observed.
frank199123 commentedon Oct 6, 2026
If Codex is still spinning after about five turns, that is this bug. You can use the Antigravity app to fix it: open the Codex project in Google Antigravity and have it repair the stall after a successful tool result.