Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
When I try to commit, git pre-commit hook runs, and I see this:
> git -c user.useConfigOnly=true commit --quiet --amend
> [email protected] format:check /home/me/myproject
> prettier --check .
Checking formatting...
All matched files use Prettier code style!
Error: Bad status code: 500
at ClientRequest.<anonymous> (/tmp/.mount_Cursorum0fRn/usr/share/cursor/resources/app/extensions/git/dist/git-editor-main.js:1:1273)
at Object.onceWrapper (node:events:639:26)
at ClientRequest.emit (node:events:524:28)
at HTTPParser.parserOnIncomingClient (node:_http_client:702:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:118:17)
at Socket.socketOnData (node:_http_client:544:22)
at Socket.emit (node:events:524:28)
at addChunk (node:internal/streams/readable:561:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
at Readable.push (node:internal/streams/readable:392:5)
error: There was a problem with the editor '"/tmp/.mount_Cursorum0fRn/usr/share/cursor/resources/app/extensions/git/dist/git-editor.sh"'.
Please supply the message using either -m or -F option.
Steps to Reproduce
DM me
Operating System
Linux
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.7.52
VSCode Version: 1.99.3
Commit: 9675251a06b1314d50ff34b0cbe5109b78f848c0
Date: 2025-10-17T01:41:03.967Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Linux x64 6.5.0-44-generic
Does this stop you from using Cursor
No - Cursor works, but with this issue
Hey, thanks for the report. The error points to an issue with Cursor’s git extension when handling commit amend operations.
Please help us understand the issue:
- Does the error occur with regular commits (without
--amend
)?
- Does it happen if you temporarily disable your pre-commit hook?
- Can you commit successfully from a terminal outside Cursor?
- Could you open Help → Toggle Developer Tools, check the Console tab, and share any errors that appear when you try to commit?
- Since you’re using the AppImage version, could you test the
.deb
or another installation method to see if the issue persists?
This will help us determine whether it’s related to amend operations, hook interactions, or AppImage packaging.
Does the error occur with regular commits (without --amend
)?
Yes
Does it happen if you temporarily disable your pre-commit hook?
Yes, the same one
> git -c user.useConfigOnly=true commit --quiet
Error: Bad status code: 500
at ClientRequest.<anonymous> (/tmp/.mount_Cursorum0fRn/usr/share/cursor/resources/app/extensions/git/dist/git-editor-main.js:1:1273)
at Object.onceWrapper (node:events:639:26)
at ClientRequest.emit (node:events:524:28)
at HTTPParser.parserOnIncomingClient (node:_http_client:702:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:118:17)
at Socket.socketOnData (node:_http_client:544:22)
at Socket.emit (node:events:524:28)
at addChunk (node:internal/streams/readable:561:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
at Readable.push (node:internal/streams/readable:392:5)
error: There was a problem with the editor '"/tmp/.mount_Cursorum0fRn/usr/share/cursor/resources/app/extensions/git/dist/git-editor.sh"'.
Please supply the message using either -m or -F option.
Can you commit successfully from a terminal outside Cursor?
Yes
Could you open Help → Toggle Developer Tools, check the Console tab, and share any errors that appear when you try to commit?
When I try to commit, the console is silent. However, I had multiple copies of the same group of errors already logged by the time I opened the console:
```
workbench.desktop.main.js:47 [054] potential listener LEAK detected, having 431 listeners already. MOST frequent listener (32):
check @ workbench.desktop.main.js:47
workbench.desktop.main.js:47 Error
at $uc.create (workbench.desktop.main.js:47:12844)
at Tcr._event (workbench.desktop.main.js:49:1650)
at vir (workbench.desktop.main.js:7249:14164)
at a (workbench.desktop.main.js:7249:11454)
at lEt.value (workbench.desktop.main.js:7249:11720)
at _e._deliver (workbench.desktop.main.js:49:2962)
at _e._deliverQueue (workbench.desktop.main.js:49:3053)
at _e.fire (workbench.desktop.main.js:49:3390)
at ycr.createModel (workbench.desktop.main.js:2946:1328)
at Rn (workbench.desktop.main.js:6697:27026)
at workbench.desktop.main.js:6697:27471
check @ workbench.desktop.main.js:47
workbench.desktop.main.js:55 ERR [054] potential listener LEAK detected, having 431 listeners already. MOST frequent listener (32):: Error
at $uc.create (vscode-file://vscode-app/tmp/.mount_Cursorum0fRn/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:47:12844)
at Tcr._event (vscode-file://vscode-app/tmp/.mount_Cursorum0fRn/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:49:1650)
at vir (vscode-file://vscode-app/tmp/.mount_Cursorum0fRn/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7249:14164)
at a (vscode-file://vscode-app/tmp/.mount_Cursorum0fRn/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7249:11454)
at lEt.value (vscode-file://vscode-app/tmp/.mount_Cursorum0fRn/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7249:11720)
at _e._deliver (vscode-file://vscode-app/tmp/.mount_Cursorum0fRn/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:49:2962)
at _e._deliverQueue (vscode-file://vscode-app/tmp/.mount_Cursorum0fRn/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:49:3053)
at _e.fire (vscode-file://vscode-app/tmp/.mount_Cursorum0fRn/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:49:3390)
at ycr.createModel (vscode-file://vscode-app/tmp/.mount_Cursorum0fRn/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:2946:1328)
at Rn (vscode-file://vscode-app/tmp/.mount_Cursorum0fRn/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:6697:27026)
at vscode-file://vscode-app/tmp/.mount_Cursorum0fRn/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:6697:27471 ListenerLeakError: [054] potential listener LEAK detected, having 431 listeners already. MOST frequent listener (32):
at $uc.create (workbench.desktop.main.js:47:12844)
at Tcr._event (workbench.desktop.main.js:49:1650)
at vir (workbench.desktop.main.js:7249:14164)
at a (workbench.desktop.main.js:7249:11454)
at lEt.value (workbench.desktop.main.js:7249:11720)
at _e._deliver (workbench.desktop.main.js:49:2962)
at _e._deliverQueue (workbench.desktop.main.js:49:3053)
at _e.fire (workbench.desktop.main.js:49:3390)
at ycr.createModel (workbench.desktop.main.js:2946:1328)
at Rn (workbench.desktop.main.js:6697:27026)
at workbench.desktop.main.js:6697:27471
```
Thanks for the details! This confirms a bug in Cursor’s Git extension.
I’ll pass this to the team. Could you test another installation method (.deb
or tarball) and let me know if the issue persists?