Cursor unable to find commit

Describe the Bug

Cursor is unable to generate a commit message. After looking further I found at Cursor Git Graph log that it’s unable to find commits:

2024-12-09 10:08:58.704 [info] Using repo backend url https://repo42.cursor.sh

2024-12-09 10:08:59.653 [error] Failed to get related files No indexer found for file. Maybe not inside a git repo? /Users/danielbichuetti/Repos/Intelijus/platform.backend/test.ipynb

2024-12-09 10:08:59.655 [error] Failed to get cached related files… falling back to uncached No indexer found for file. Maybe not inside a git repo? /Users/danielbichuetti/Repos/Intelijus/platform.backend/test.ipynb

2024-12-09 10:08:59.655 [error] Failed to get related files No indexer found for file. Maybe not inside a git repo? /Users/danielbichuetti/Repos/Intelijus/platform.backend/test.ipynb

2024-12-09 10:09:01.043 [info] Using repo backend url https://repo42.cursor.sh

2024-12-09 10:09:01.199 [info] Git graph is enabled

2024-12-09 10:09:01.199 [info] Creating indexer for repo /Users/danielbichuetti/Repos/Intelijus/platform.backend

2024-12-09 10:09:04.574 [info] GitGraphIndexer initialized {“workspaceId”:“gg_12ef436c-ae14-40df-a0e5-8e8ed09a2fda”,“rootUri”:“/Users/danielbichuetti/Repos/Intelijus/platform.backend”}

2024-12-09 10:09:14.268 [info] Starting graph population {“rootUri”:“/Users/danielbichuetti/Repos/Intelijus/platform.backend”}

2024-12-09 10:09:17.718 [info] Marked HEAD as pending {“headSha”:“f358ec61a8bc7d8d6864f2944c272bc0e66c9043”,“rootUri”:“/Users/danielbichuetti/Repos/Intelijus/platform.backend”}

2024-12-09 10:09:19.455 [info] Waiting before uploading commits, on request from server {“waitTimeMs”:811.8248291015625,“rootUri”:“/Users/danielbichuetti/Repos/Intelijus/platform.backend”}

2024-12-09 10:09:20.272 [error] Error getting commit chain for adb8e1b314082b171668eb972ab6ce84294d4501 {“error”:“Failed to get commit data: Failed to find commit”,“rootUri”:“/Users/danielbichuetti/Repos/Intelijus/platform.backend”}
2024-12-09 10:10:36.933 [info] Waiting before uploading commits, on request from server {“waitTimeMs”:894.4447631835938,“rootUri”:“/Users/danielbichuetti/Repos/Intelijus/platform.backend”}
2024-12-09 10:10:37.829 [error] Error getting commit chain for adb8e1b314082b171668eb972ab6ce84294d4501 {“error”:“Failed to get commit data: Failed to find commit”,“rootUri”:“/Users/danielbichuetti/Repos/Intelijus/platform.backend”}
2024-12-09 10:10:43.015 [info] Waiting before uploading commits, on request from server {“waitTimeMs”:560.3845825195312,“rootUri”:“/Users/danielbichuetti/Repos/Intelijus/platform. Backend”}

Steps to Reproduce

This started randomly. I’m unable to find the exact point in time where it started. Despie lots of commits, git LFS was enabled in the tree.

Expected Behavior

Cursor should read Git Graph and generate commit messages

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 0.43.5
VSCode Version: 1.93.1
Commit: 2eaa79a1b14ccff5d1c78a2c358a08be16a8e5a0
Date: 2024-11-27T09:11:51.854Z
Electron: 30.5.1
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 24.2.0

Additional Information

Git is working flawlessly. Other cursor functions that don’t depend on Git are working.

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

That commit is a bad object:

git show adb8e1b314082b171668eb972ab6ce84294d4501
fatal: bad object adb8e1b314082b171668eb972ab6ce84294d4501

Basically, this commit was removed after Git LFS migrate. Any way to make Cursor go by it ?