Git commit via IDE fails

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Committing via Source Control with the commit editor tab (git-editor.sh / git.useEditorAsCommitInput) fails with HTTP 500. I have used this workflow for previously whithout issue; it stopped working around 2026-06-28, shortly after a Cursor update.

Git output (from Cursor Source Control / Git log):

git -c user.useConfigOnly=true commit --quiet
Error: Bad status code: 500
at ClientRequest. (…/extensions/git/dist/git-editor-main.js:1:1273)
…
error: There was a problem with the editor ‘“…\AppData\Local\Programs\cursor\resources\app\extensions\git\dist\git-editor.sh”’.
Please supply the message using either -m or -F option.
The internal HTTP handler used by git-editor-main.js returns 500 before COMMIT_EDITMSG can be read/written, so the commit aborts.

Commits from the integrated terminal work: git commit -m “message” completes successfully. Only the UI commit-editor path fails.

Steps to Reproduce

Ensure git.useEditorAsCommitInput is enabled (my normal workflow).
Open any git repo in Cursor on Windows.
Stage changes in Source Control.
Commit with an empty inline message box so Cursor opens the commit editor tab (or use the flow that invokes git-editor.sh).
Observe HTTP 500 and failed commi

Expected Behavior

Commit editor tab opens; I write a multi-line message, save/close; commit completes (as before 2026-06-27).

Operating System

Windows 10/11

Version Information

Cursor: 3.9.16
VS Code base: 1.105.1
Commit: 042b3c1a4c53f2c3808067f519fbfc67b72cad80
Build date: 2026-06-27T06:41:01.941Z

Additional Information

Git: 2.45.1.windows.1
core.editor: not set in git config (Cursor injects git-editor.sh at commit time)
No pre-commit hooks in the affected repo
Git user identity is configured
Terminal commit works: git commit -m “…” succeeds from Cursor’s integrated terminal and from an external shell

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hi @DaveKP,

I thought I was able to reproduce this yesterday (on Mac, rather than Windows), but after a fresh git pull and restarting Cursor, it started working again.

Could you confirm whether the issue persists in a new Git repository (or another project) and after restarting Cursor?

Same happens to me
git -c user.useConfigOnly=true commit --quiet --amend
trim trailing whitespace…Passed
fix end of files…Passed
check json…(no files to check)Skipped
check toml…(no files to check)Skipped
check xml…(no files to check)Skipped
check yaml…(no files to check)Skipped
debug statements (python)…Passed
check builtin type constructor use…Passed
check for case conflicts…Passed
check docstring is first…Passed
detect private key…Passed
django-upgrade…Passed
ruff (legacy alias)…Passed
ruff format…Passed
djLint formatting for Django…(no files to check)Skipped
djLint linting for Django…(no files to check)Skipped
pylint (archivos Python modificados, via Docker)…Passed
mypy (archivos Python modificados, via Docker)…Passed
pytest (tests de archivos modificados, via Docker)…Passed
behave (features implicadas, via Docker)…(no files to check)Skipped
Audit AGENTS.md hard rules…Passed
Documentación (docgen + mkdocs strict, via Docker)…Passed
Error: connect ECONNREFUSED /run/user/1000/vscode-git-65904915c6.sock
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1705:16) {
errno: -111,
code: ‘ECONNREFUSED’,
syscall: ‘connect’,
address: ‘/run/user/1000/vscode-git-65904915c6.sock’
}
error: There was a problem with the editor ‘“/usr/share/cursor/resources/app/extensions/git/dist/git-editor.sh”’.
Por favor suministra el mensaje usando las opciones -m o -F.

Version: 3.12.17
VS Code Extension API: 1.128.0
Commit: 0fb762053c34788bb7760d5673f8a6d4c8589d50
Date: 2026-07-17T02:53:53.006Z
Layout: IDE
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.256
OS: Linux x64 6.8.0-136-generic

Hi @javiermarcon!

Your error looks a bit different from the original report: connect ECONNREFUSED /run/user/1000/vscode-git-65904915c6.sock means the commit-editor helper tried to reach Cursor over a local socket, but the socket file existed with nothing listening behind it anymore. That usually points to a leftover socket from an extension host that went away uncleanly (crash, forced restart, or an update relaunch), rather than a problem with git itself.

A few questions to help us narrow it down:

  1. Does it happen on every commit until you restart Cursor, and does a full restart of Cursor fix it? Normally the socket is recreated on startup, so if it persists across restarts that tells us something important.

  2. Do you have more than one Cursor window open on this project, in particular, do you also have the Agents window open (or agents running on this repo) alongside your editor window?

  3. Your pre-commit hooks (pytest/mypy/behave via Docker) look like they take a while, did anything happen to the Cursor window between clicking commit and seeing the error? E.g. a window reload, an update prompt, or Cursor restarting the extension host.

  4. Next time it’s in the broken state, before restarting, could you run this in a terminal and paste the output:

ls -la /run/user/1000/vscode-git-\*.sock && ss -xl | grep vscode-git

That shows us whether the socket file exists and whether anything is listening on it, which distinguishes between the possible causes in one shot.

Now the commit works, but cursor ignores pre-commit in every commit. Other ides (like vs code run the pre-commit hooks perfectly in the same repository).