Random indentation errors when taking nearly any action in Cursor

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Taking any action - sending messages, changing from Ask to Agent mode - runs a risk of introducing small indentation errors across the entire codebase in random files. These sometimes disappear when sending a new message, but sometimes multiply.

Steps to Reproduce

It is hard to reproduce - this has only been a problem in the last hour or so, and I haven’t seen this beforehand.

Expected Behavior

I need to be able to edit my codebase without getting random indentation errors unrelated to any agent activity!

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.1.6 (Universal)
VSCode Version: 1.96.2
Commit: 5b19bac7a947f54e4caa3eb7e4c5fbf832389850
Date: 2025-06-25T02:16:57.571Z
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.5.0

Does this stop you from using Cursor

Yes - Cursor is unusable

Thanks for reporting this.

Here’s what to try:

Update first: Please update to the latest version (1.5.5) and retest.

Check workspace settings: Go to Settings → Editor → Detect Indentation and ensure consistent tab/space settings. Also verify your Python extension settings aren’t conflicting.

If still occurring: Try cursor --disable-extensions to rule out extension conflicts, then re-enable one by one to identify any problematic extensions.

Please let us know if this still happens after these steps. Thanks!

You can download the latest version here: Downloads | Cursor - The AI Code Editor

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