GPT-5 struggles with formatting and linting

Describe the Bug

Whenever in agent mode I use GPT-5 models first iteration does not fit the formatting rules I have with prettier and shows many errors like spaces instead of tabs and wrong indentation.

Steps to Reproduce

Run GPT-5 models with prettier rules configured on any file. Generated code does not fit the prettier rules and takes a secondary step to fix these rules.

Expected Behavior

Either generate with rules in mind or save on generation complete so auto formatting can happen.

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.4.4
VSCode Version: 1.99.3
Commit: dd05130a0bf8d5f1a5372e6e6bb7c4184786eaa0
Date: 2025-08-10T22:39:50.197Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.6.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

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