I am facing this issue on every start of cursor window, once I open cursor, it just goes into a loading state including the terminal. I have to open a new window and that fixes the issue. This started happening to me once I started to work on multiple projects in cursor.
Steps to Reproduce
Open two different projects on two different windows, close them both. Open cursor next time, one window will be in loading state.
Hey, this is a known bug. When the window starts, Cursor tries to restore previously opened git diff tabs (or tabs tied to the git model), and git init gets blocked with no timeout. With multiple workspaces, it’s more likely to happen. We’re tracking this on our side, but there’s no ETA for a fix yet.
A better workaround than opening a new window every time:
Before you quit, close any git diff tabs or source control views in the affected window. Regular file tabs restore fine.
Or disable session restore: Settings → search for window.restoreWindows → set it to none or one. Then Cursor won’t try to restore the stuck state.
I’m sorry. Thank you for the information you shared. I’m currently using it for company work, so I’m not in a position to test the latest version right now instead of the older stable version.
I plan to stay on the older version for about two more months, and after that I will definitely check the method you suggested. Thank you very much.
Hey, quick note: both workarounds from my previous message work on any Cursor version, no upgrade needed. You can apply them right now on the version you’re using:
Close any git diff tabs and the Source Control view before quitting, or
Settings → search for window.restoreWindows → set it to none or one
If either of these doesn’t work on your version, let me know and we can take a look.