GitLens error: Element with id gitlens://searchAndCompare/compare-results/comparison/+origin/main is already registered

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When I try to compare branches with the GitLens extension I get an error:

Element with id gitlens://searchAndCompare/compare-results/comparison/+origin/main is already registered

I’ve tried disabling all other extensions. I’ve also tried the same repo in VS Code and GitLens doesn’t error.

Steps to Reproduce

I can’t share my repo to not sure what to suggest…?

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.5.9
VSCode Version: 1.99.3
Commit: de327274300c6f38ec9f4240d11e82c3b0660b20
Date: 2025-08-30T21:02:27.236Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.6.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, please update to version 1.6 and let me know if the issue still persists.

I’m on version 1.6.45 but the issue is still there.

It looks like this issue is specific to the GitLens extension. Here are similar errors. You can try switching to the pre-release version as a workaround.

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