AI Generate Commit Message: No contents found

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Cursor is returning an error during generating commit message for staged files.

Steps to Reproduce

open Cursor
make any changes in code
Click on “Generate Commit Message” (AI commit message feature).

Operating System

MacOS

Version Information

Version: 3.5.17
VSCode Version: 1.105.1
Commit: d5b2fc092e16007956c9e5047f76097b9e626ca0
Date: 2026-05-20T02:43:31.559Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 25.4.0

Additional Information

Same issue as: Generate Commit Message: No contents found, still exists today.

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for confirming the bug is still happening on 3.5.17. It’s the same issue as in Generate Commit Message: No contents found. The internal git provider loses its registration after Cursor has been running for a while, so the feature stops seeing staged files.

This is on our side and it’s logged internally. I can’t share an ETA for a fix yet.

Current workaround:

  • When it happens, restart Cursor. After a restart, Generate Commit Message works again.
  • If you want it to last longer, start Cursor with a clean profile cursor --user-data-dir=/tmp/cursor-test. This resets the state.

If, when it happens, you see fresh red errors in the Developer Tools Console via Help → Toggle Developer Tools right when you click the button, not startup errors, please post a screenshot here. That’ll help the team narrow down the cause.