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

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

Expected Behavior

Message should be generated

Screenshots / Screen Recordings

Operating System

Windows 10/11

Version Information

Version: 2.6.22 (system setup)
VSCode Version: 1.105.1
Commit: c6285feaba0ad62603f7c22e72f0a170dc8415a0
Date: 2026-03-27T15:59:31.561Z
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: Windows_NT x64 10.0.26100

For AI issues: which model did you use?

Auto

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. I see the screenshot with the error.

This is a known issue. Cursor sometimes can’t read the git repo contents to generate a message, even though the changes show up in the Changes panel.

First, try starting Cursor with a clean profile. This has helped in previous cases:

cursor --user-data-dir=C:\Temp\cursor-test

Open the same project and try generating a commit message. If it works, the issue is in your profile cache or state.

If it doesn’t, please share:

  • The output of git status in Cursor’s integrated terminal. Does it show staged files?
  • Ctrl+Shift+P then Git: Show Git Output. Do you see any errors there?

Let me know how it goes.

Hello Dean,

thanks for quick answer.

I’ve tested cleaning profile in last week. Basically it works, but not for long. After few hours problem start occurring again.
git status - works as expected. I’ve seen stagged files

Git: Show Git Output - after cleaning profile it works, but when error occurs I havent seen anything in console.

Hey, thanks for the extra info. The fact that a clean profile helps temporarily but then breaks again is an important detail. It sounds like Cursor’s internal git provider is disconnecting over time.

We need to catch it when the error shows up again. When it happens next time before restarting Cursor:

  1. Open Developer Tools and go to the Console tab
  2. Check for red errors, especially anything mentioning git, commit, EverythingProvider, or cursor-commits
  3. Send a screenshot or paste the text of those errors here

Also, do you have any git-related extensions installed like GitLens, Git Graph, etc.? If yes, try disabling them and use Cursor for a couple of hours. Let’s see if they’re triggering the issue.

Let me know what the Console shows.

Hi Dean,
Im seeing only below error when I press “Generate Commit Message”.

Regarding installed extensions - I’ve only GitLens — Git supercharged v17.11.1 (disabled for now).
I’ve also observed one error after restarting cursor, but I dont know if it is somehow related to my issue.

workbench.desktop.main.js:44025 [KnowledgeBaseService] Error fetching git upstream URL: Error: No full commit provider registered
at Q5a.getGitUpstreamURL (workbench.desktop.main.js:43855:106885)
at fGa.getGitUpstreamUrl (workbench.desktop.main.js:44025:8861)
at fGa.refresh (workbench.desktop.main.js:44025:9183)

getGitUpstreamUrl @ workbench.desktop.main.js:44025

I can see the Console screenshots, they’re really helpful.

The key error here is:

[KnowledgeBaseService] Error fetching git upstream URL: Error: No full commit provider registered

This means Cursor’s internal git provider is getting disabled while you’re working. That’s why it works fine on a fresh profile, then breaks after some time. The provider loses its registration.

The other Console errors (Failed to load team commands, HOOKS Failed to parse, TrustedScript) are most likely side effects and not directly related.

The main question now is whether disabling GitLens helped. Please use Cursor with GitLens turned off for at least a day and see if the error comes back. GitLens can conflict with Cursor’s internal git provider.

If the bug returns even without GitLens, let me know and I’ll pass the details to the team.

Hello Dean,

it doesnt help.

2 days ago I’ve cleared profile and for most of the time, everything was working until today.
I dont see anything suspicious in console, but maybe you will find something useful.
All messages except last one are showing after running cursor.

Thanks, I see the console screenshot, thanks. Since GitLens didn’t help, it’s most likely a bug on our side where the git provider loses its registration after some time.

One more thing for debugging, if you don’t mind. Next time the error shows up, right at that moment (without restarting Cursor), open the Developer Tools Console and check if there are any new red errors. What’s in the screenshot now looks like startup errors, but we need to catch the moment when the provider disconnects.

Specifically, open Console, click the generate commit button, and send me any new errors that appear at that moment.

Let me know if you manage to catch it.