Codex Desktop enters an infinite loop of repeated tool calls
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.4k
- PR merge metrics
- PR metrics pending
Description
What version of Codex is running?
Codex Desktop 26.826.12353 on Windows 11.
What happened?
Codex Desktop can enter an apparent infinite loop of repeated tool calls / repeated connection-status actions. Instead of completing the task or failing once, it keeps issuing the same tool-related action and printing the same status line many times.
This started suddenly between working sessions: the same setup worked the previous day, but after reopening Codex the next day the loop appeared. Restarting the PC did not resolve it.
The problem is not limited to one third-party MCP server:
- It was first observed while the Weppy Roblox MCP integration and Roblox Studio were connected.
- It continued after Weppy was disabled/disconnected.
- In one test, the same connection/status line was printed more than 10 times after the visible screenshot.
- Previously, the same flow normally connected within roughly 10–20 seconds, reported the active Roblox experience/mode once, and continued.
- The UI may also remain in a reconnecting state.
There were two Roblox-related MCP routes visible in the affected setup:
Roblox_Studio— 29 toolsweppy-roblox-mcp— 25 tools
Disabling the duplicate Roblox_Studio route and keeping only Weppy was tested/recommended during diagnosis, but the repeated-call behavior was also reproduced with Weppy disabled, so this does not appear to be solely a Weppy bug.
A separate Weppy startup attempt timed out after 30 seconds. Increasing MCP startup/tool timeouts may help that timeout, but it does not explain why Codex repeats the same action indefinitely instead of surfacing one error and stopping.
Steps to reproduce
The exact trigger is not fully deterministic, but the observed sequence is:
- Open Codex Desktop on Windows.
- Start a chat that uses MCP tools (in the original case, Roblox Studio / Weppy).
- Ask Codex to inspect or connect to the active Roblox Studio session.
- Observe Codex repeat the same tool call or connection/status action instead of continuing.
- Disable/disconnect Weppy and retry.
- In affected sessions, Codex can still repeat the same line/action many times or remain in a reconnecting loop.
Expected behavior
Codex should call a tool once, wait for its result, then either continue the task or surface a single timeout/connection error. It should detect identical repeated calls with no state change and stop the loop.
Actual behavior
Codex repeatedly issues the same tool-related action/status output, sometimes more than 10 times, without useful progress. The session may remain stuck until Codex is restarted or the run is manually stopped.
Frequency
Intermittent but repeatedly reproducible after it started. It affected both the original MCP-enabled setup and a test with Weppy disabled.
Regression?
Yes. The same setup and workflow worked the previous day. The issue appeared after reopening Codex the next day, without an intentional project/workflow change. A recent Codex Desktop update/regression is suspected, but the root cause is not confirmed.
Additional context
- OS: Windows 11
- Codex Desktop: 26.826.12353
- Third-party integration present during initial reproduction: Weppy Roblox AI Toolkit Pro
- PC restart did not fix it.
- Disconnecting Weppy did not eliminate the repeated-call behavior.
- Screenshots/video can be provided if maintainers need the exact repeated line and UI state.
This report intentionally does not claim Weppy or the recent update is the confirmed cause. The core Codex-side failure is the absence of loop detection/backoff when an identical tool action makes no progress.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files or tests are identified in the report. Start by reproducing the MCP tool or connection-status loop with the listed Codex Desktop and Windows setup, then trace the repeated action and its retry state; done means identical no-progress calls stop and produce one useful timeout or connection error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100