Gpt-5-codex stuck in a loop

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I asked for a super small task, it implemented that fast but then could not stop from running and calling tools.

Steps to Reproduce

Just tell Cursor to fix or implement something small

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.6.45 (user setup)
VSCode Version: 1.99.3
Commit: 3ccce8f55d8cca49f6d28b491a844c699b8719a0
Date: 2025-09-22T18:22:38.013Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100

For AI issues: which model did you use?

gpt-5-codex

For AI issues: add Request ID with privacy disabled

443adfdd-1c6b-4ac1-938d-b94141e8afc0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey Johan

May i ask how you’d enabled that model?

The Cursor-Ways won’t work on my side - model cannot be found.

Thanks,
Smali

Hey Smali,

It’s listed by default in the model selection dropdown. No need to add it manually. I think you should see it soon as it maybe rolls out gradually.

happened to me too, it wanted to run an invalid command and no matter if i let it run and it fails or skip it, it just kept on running it over and over

This happened to me as well, in the GPT-5 Codex extension. It kept running inline Python programs to investigate the same things over and over again. It also broke things. It seemed drugged. Things were broken, but after I reverted all of its changes things worked fine - scary. I’ve used Claude ever since (~2 days). When I return to GPT-5 Codex, I will be SURE to set it on HIGH and nothing else from now on! This could be a Cursor interaction since I normally use GPT-5 Codex in the codex CLI and have never seen this kind of confused/lost looping behavior before. Maybe it was running below “Medium” level which the CLI uses by default?