# GPT-5 Mini randomly executes Git actions without permission

**URL:** <https://forum.cursor.com/t/gpt-5-mini-randomly-executes-git-actions-without-permission/131756>\
**Category:** Bug Reports\
**Created:** [August 23, 2025, 3:29pm UTC](https://forum.cursor.com/t/gpt-5-mini-randomly-executes-git-actions-without-permission/131756 "2025-08-23T15:29:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![G4Q4](https://avatars.discourse-cdn.com/v4/letter/g/3e96dc/32.png) [@G4Q4](https://forum.cursor.com/u/G4Q4)\
**Post date:** [August 23, 2025, 3:29pm UTC](https://forum.cursor.com/t/gpt-5-mini-randomly-executes-git-actions-without-permission/131756/1 "2025-08-23T15:29:45Z")

</div>

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

Cursor IDE

### Describe the Bug

GPT-5 Mini randomly runs Git actions without permission.

### Steps to Reproduce

If I Use GPT-5 mini for a period of time, it will eventually start randomly committing and running other Git commands without my permission

### Expected Behavior

To never run Git actions without my permission.

### Operating System

MacOS

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

Version: 1.5.4 (Universal)  
VSCode Version: 1.99.3  
Commit: f48f0974d52c41214775efcb96bbb5d7acd581c0  
Date: 2025-08-22T20:11:36.742Z (19 hrs ago)  
Electron: 34.5.8  
Chromium: 132.0.6834.210  
Node.js: 20.19.1  
V8: 13.2.152.41-electron.0  
OS: Darwin arm64 24.6.0

### Additional Information

I’ve only noticed this with GPT-5 Mini. (Agent mode)

### Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

---

<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:** [August 23, 2025, 5:47pm UTC](https://forum.cursor.com/t/gpt-5-mini-randomly-executes-git-actions-without-permission/131756/2 "2025-08-23T17:47:13Z")

</div>

Hey, thanks for the report. Do you use any rules for AI? You can also specify that it should never do this unless you ask it to.

> **[Cursor – Rules](https://docs.cursor.com/en/context/rules)**
>
> Control how the Agent model behaves with reusable, scoped instructions.

---

<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:** [September 14, 2025, 5:48pm UTC](https://forum.cursor.com/t/gpt-5-mini-randomly-executes-git-actions-without-permission/131756/3 "2025-09-14T17:48:02Z")

</div>

Closed on September 14, 2025, 5:48pm UTC

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