Terminal Hangs on Nano Close When Committing

Hi, thanks for reporting an issue with Cursor.

Before you report this, we’d appreciate if you can search this forum to see if this issue has already been reported.

If you have done so, pleae check this box.
on

Describe the Bug

Sometimes when attempting to save and exit Nano when writing a commit message from a cursor built-in terminal, the terminal will hang. This occurs inconsistently (~25% of the time). I’ve seen similar issues re: terminal hang, but not this exact issue related to Nano and git commits.

Steps to Reproduce

  1. have nano set as terminal editor
  2. stage a file to commit
  3. commit that file
  4. write commit message
  5. attempt to write and save

Expected Behaviour

Should always write, save, and close nano with commit message successfully created, and commit properly processed.

Operating System

MacOS

Current Cursor Version (Menu → Abount 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.1.0

Additional Infomation

This only occurs when writing commit message with nano, not editing any other file.

Does this stop you from using Cursor

No - Cursor works, but with this issue