Description
When switching working directories or starting Cursor, if the previously opened latest file is located in xxx (working tree) or xxx (index), Cursor gets stuck on the file loading page indefinitely.
This issue does not occur when the previously opened file is xxx - that file loads normally.
Steps to Reproduce
Open Cursor with a file in xxx (working tree) or xxx (index)
Close Cursor
Reopen Cursor OR switch to a different working directory
Cursor attempts to restore the previous session
Application hangs on the file loading screen showing the problematic file
Expected Behavior
Cursor should either:
Successfully load the previously opened file, OR
Gracefully skip loading the file and open without hanging
Thanks for the detailed report — the reproduction steps and version info are really helpful.
I tried reproducing this on my end (opening a git diff tab, quitting Cursor, reopening / switching workspaces) but the diff tab restored normally. The hang you’re seeing likely depends on something specific to your repository or workspace configuration.
Could you help narrow it down? Next time it happens:
Is the repository large or does it use git worktrees/submodules?
After force-quitting and reopening, does the hang always come back, or only sometimes?
Does it help to close all git diff tabs, quit, and reopen? (This would confirm the diff tab restore is the trigger.)
If possible, a screen recording of the hang would be very useful — even just a few seconds showing the stuck loading state.
This will help us pin down what conditions trigger the stall so we can reproduce and fix it.
This is extremely frustrating. The IDE is essentially unusable right now, and I had to spend 15–20 minutes trying different workarounds just to get it working. This issue has apparently been known for more than 10 days, which makes it even more concerning.
Thanks for the repro steps — the nested git init pattern confirms what we suspected. And thanks to everyone who shared additional reports.
This is a confirmed bug. When Cursor restores a diff tab (Git Changes / working tree / index view) on startup, it can get stuck in an infinite loading state. It affects both macOS and Linux, and persists across recent versions (3.0.16 through 3.2.11). --disable-extensions doesn’t help because the hang is in the core editor, not in extensions.
Workaround: Close any git diff tabs before quitting Cursor. If you’re already stuck, force-quit, reopen, quickly close the diff tab before it fully loads, then restart.