# GPT5.1-codex-mini keep asking to run command

**URL:** <https://forum.cursor.com/t/gpt5-1-codex-mini-keep-asking-to-run-command/143190>\
**Category:** Bug Reports\
**Created:** [November 19, 2025, 9:14am UTC](https://forum.cursor.com/t/gpt5-1-codex-mini-keep-asking-to-run-command/143190 "2025-11-19T09:14:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Muhd\_Ridhwan](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@Muhd\_Ridhwan](https://forum.cursor.com/u/Muhd_Ridhwan)\
**Post date:** [November 19, 2025, 9:14am UTC](https://forum.cursor.com/t/gpt5-1-codex-mini-keep-asking-to-run-command/143190/1 "2025-11-19T09:14:51Z")

</div>

### Where does the bug appear (feature/product)?

Cursor IDE

### Describe the Bug

GPT5.1-codex-mini keep asking to run command

### Steps to Reproduce

Choose auto-mode and GPT5.1-codex-mini, ask to refactor or revise code

### Screenshots / Screen Recordings

 ![Snipaste_2025-11-19_17-13-01.jpg](https://us1.discourse-cdn.com/cursor1/original/3X/0/9/092a5924c94fa1093909fb98b728c07616a1b86a.jpeg)

### Operating System

Windows 10/11

### Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.0.77 (user setup)  
VSCode Version: 1.99.3  
Commit: ba90f2f88e4911312761abab9492c42442117cf0  
Date: 2025-11-13T23:10:43.113Z  
Electron: 37.7.0  
Chromium: 138.0.7204.251  
Node.js: 22.20.0  
V8: 13.8.258.32-electron.0  
OS: Windows\_NT x64 10.0.26100

### For AI issues: which model did you use?

GPT5.1-codex-mini

### Does this stop you from using Cursor

No - Cursor works, but with this issue

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [November 19, 2025, 3:31pm UTC](https://forum.cursor.com/t/gpt5-1-codex-mini-keep-asking-to-run-command/143190/2 "2025-11-19T15:31:32Z")

</div>

Hey, thanks for the report. It looks like the model is hallucinating: it’s generating unrelated terminal commands (pwd, ls, echo) instead of actually editing your code.

Please share the Request ID – this is critical for the engineering team:

- Click the context menu in the top right corner of this chat → Copy Request ID

A few quick checks that can help narrow this down:

- Try the same refactoring task with a different model (for example, Claude Sonnet 4)
- Does this happen every time with GPT 5.1 codex mini, or only sometimes?

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/127254_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [December 11, 2025, 3:31pm UTC](https://forum.cursor.com/t/gpt5-1-codex-mini-keep-asking-to-run-command/143190/3 "2025-12-11T15:31:54Z")

</div>

Closed on December 11, 2025, 3:31pm UTC

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.
