Spawns linter errors

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

It always randomly spawns linter errors if I revert a message, even if there were no changes after that message, it still just creates linter errors.

I’ll send 1 message in ask mode (no changes applied) revert that message and it still just creates linter errors.

Steps to Reproduce

Revert a message I guess

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.7.54
VSCode Version: 1.99.3
Commit: 5c17eb2968a37f66bc6662f48d6356a100b67be0
Date: 2025-10-21T19:07:38.476Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin x64 20.6.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. To help investigate, please share:

  • Which AI model are you using when this happens?
  • Request ID: after the issue occurs, click the three dots in the top-right of the Chat sidebar and select “Copy Request ID”
  • What specific linter errors appear? (screenshot or error text)
  • Which language/file type are you working with?

Hi, sorry for the late response.

So this always happens when you edit a message (or don’t), send it again and revert the changes, even if no changes were made since that message. Currently happens to me when using claude 4.5 sonnet but that’s also because it’s pretty much the only model I use, it happens for any model.
It’s insanely annoying and only seems to happen for certain files.

The language is python, and the errors are mostly ‘Unexpected identation’, Not defined, ‘Unindent amount does not match previous indent’ and ‘Expected expression’.

This is a random request ID of where it happened: 1933a8af-cde5-4622-99a2-880b3097c33e

Thanks for providing those details! The request ID and error specifics are very helpful.

It looks like there’s a bug in how the chat revert function handles Python code state.

In the meantime, please try these workarounds:

  • Use Timeline (right-click the file → “Open Timeline”) to restore a clean state if errors appear after a revert
  • Save/commit your work before testing message edits and reverts

Also could you update to the latest version and let me know if the issue still persists?

We’ll investigate why revert is breaking indentation state in Python files.

Issue still persists and by the way this has been happening for a while now, it’s probably been a month or 2 that I’ve been consistently experiencing it.

1 Like