# Bug Report: Cursor hangs on file loading page when switching workspaces or on startup

**URL:** <https://forum.cursor.com/t/bug-report-cursor-hangs-on-file-loading-page-when-switching-workspaces-or-on-startup/158126>\
**Category:** Bug Reports\
**Tags:** worktrees, performance\
**Created:** [April 16, 2026, 2:55am UTC](https://forum.cursor.com/t/bug-report-cursor-hangs-on-file-loading-page-when-switching-workspaces-or-on-startup/158126 "2026-04-16T02:55:59Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![c6df17014f8ed5be2272](https://avatars.discourse-cdn.com/v4/letter/c/45deac/32.png) [@c6df17014f8ed5be2272](https://forum.cursor.com/u/c6df17014f8ed5be2272)\
**Post date:** [April 16, 2026, 2:55am UTC](https://forum.cursor.com/t/bug-report-cursor-hangs-on-file-loading-page-when-switching-workspaces-or-on-startup/158126/1 "2026-04-16T02:55:59Z")

</div>

### Where does the bug appear (feature/product)?

Cursor IDE

### Describe the Bug

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

### Operating System

MacOS

### Version Information

Version: 3.0.16  
VSCode Version: 1.105.1  
Commit: 475871d112608994deb2e3065dfb7c6b0baa0c50  
Date: 2026-04-09T05:33:51.767Z (6 天前)  
Layout: editor  
Build Type: Stable  
Release Track: Default  
Electron: 39.8.1  
Chromium: 142.0.7444.265  
Node.js: 22.22.1  
V8: 14.2.231.22-electron.0  
OS: Darwin arm64 25.2.0

### Does this stop you from using Cursor

No - Cursor works, but with this issue

---

<div class="post-metadata">

**Author:** ![mohitjain](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mohitjain/32/100229_2.png) [@mohitjain](https://forum.cursor.com/u/mohitjain)\
**Post date:** [April 16, 2026, 4:56am UTC](https://forum.cursor.com/t/bug-report-cursor-hangs-on-file-loading-page-when-switching-workspaces-or-on-startup/158126/6 "2026-04-16T04:56:32Z")

</div>

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:

1. **Is the repository large or does it use git worktrees/submodules?**

2. **After force-quitting and reopening, does the hang always come back, or only sometimes?**

3. **Does it help to close all git diff tabs, quit, and reopen?** (This would confirm the diff tab restore is the trigger.)

4. 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.

---

<div class="post-metadata">

**Author:** ![c6df17014f8ed5be2272](https://avatars.discourse-cdn.com/v4/letter/c/45deac/32.png) [@c6df17014f8ed5be2272](https://forum.cursor.com/u/c6df17014f8ed5be2272)\
**Post date:** [April 16, 2026, 6:00am UTC](https://forum.cursor.com/t/bug-report-cursor-hangs-on-file-loading-page-when-switching-workspaces-or-on-startup/158126/8 "2026-04-16T06:00:25Z")

</div>

maybe it use **submodules**

```auto
git init
mkdir test-for-cursor
cd test-for-cursor
git init
go mod init test-for-cursor
git add go.mod

```

modify go.mod

open diff file `go.mod`

close cursor, and reopen it

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/1/1/118d4d993ae87914541241a4aba6fbb3a37b566c.png)

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/9/c/9ca986513bc0647a36ec4273dcc1e06a2cab6858.png)

---

<div class="post-metadata">

**Author:** ![Ahmed\_Khaled](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@Ahmed\_Khaled](https://forum.cursor.com/u/Ahmed_Khaled)\
**Post date:** [April 27, 2026, 1:13pm UTC](https://forum.cursor.com/t/bug-report-cursor-hangs-on-file-loading-page-when-switching-workspaces-or-on-startup/158126/9 "2026-04-27T13:13:27Z")

</div>

### Where does the bug appear (feature/product)?

Cursor IDE

### Describe the Bug

Cursor gets stuck in an infinite loading state when opening.

To work around the issue, I have to close the current editor tab and then restart Cursor.

Running cursor --disable-extensions does not fix the problem; Cursor still remains stuck in infinite loading.

### Steps to Reproduce

1. Open Cursor with a code editor tab showing a diff, such as Git changes, while the terminal tab open.
2. Close Cursor.
3. Reopen Cursor.  
Cursor gets stuck in an infinite loading state.

### Expected Behavior

work normally

### Screenshots / Screen Recordings

### Operating System

Linux

### Version Information

Version: 3.2.11  
VSCode Version: 1.105.1  
Commit: e9ee1339915a927dfb2df4a836dd9c8337e17cc0  
Date: 2026-04-24T14:36:47.933Z  
Layout: editor  
Build Type: Stable  
Release Track: Default  
Electron: 39.8.1  
Chromium: 142.0.7444.265  
Node.js: 22.22.1  
V8: 14.2.231.22-electron.0  
OS: Linux x64 6.17.0-22-generic

### Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

---

<div class="post-metadata">

**Author:** ![kbrTeo](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kbrteo/32/106904_2.png) [@kbrTeo](https://forum.cursor.com/u/kbrTeo)\
**Post date:** [April 27, 2026, 1:35pm UTC](https://forum.cursor.com/t/bug-report-cursor-hangs-on-file-loading-page-when-switching-workspaces-or-on-startup/158126/10 "2026-04-27T13:35:38Z")

</div>

> [@Ahmed\_Khaled](#):
>
> ### Version Information
> 
> Version: 3.2.11  
> VSCode Version: 1.105.1  
> Commit: e9ee1339915a927dfb2df4a836dd9c8337e17cc0  
> Date: 2026-04-24T14:36:47.933Z  
> Layout: editor  
> Build Type: Stable  
> Release Track: Default  
> Electron: 39.8.1  
> Chromium: 142.0.7444.265  
> Node.js: 22.22.1  
> V8: 14.2.231.22-electron.0  
> OS: Linux x64 6.17.0-22-generic

Same issue here, it’s been happening for a few weeks now. In the meantime I’ve installed two Cursor updates and the problem still persists.

For reference, I don’t experience the issue on VSCode or Antigravity, only on Cursor.

System info:  
Version: 3.1.17  
VSCode Version: 1.105.1  
Date: 2026-04-19T19:33:58.189Z  
Release Track: Default  
Electron: 39.8.1  
Chromium: 142.0.7444.265  
Node.js: 22.22.1  
V8: 14.2.231.22-electron.0  
OS: Darwin arm64 25.4.0 (macOS 26.4.1, Apple Silicon)

Happy to share logs or a repro if helpful.  
Thanks!

---

<div class="post-metadata">

**Author:** ![sserkan](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@sserkan](https://forum.cursor.com/u/sserkan)\
**Post date:** [April 27, 2026, 6:25pm UTC](https://forum.cursor.com/t/bug-report-cursor-hangs-on-file-loading-page-when-switching-workspaces-or-on-startup/158126/11 "2026-04-27T18:25:32Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![mohitjain](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mohitjain/32/100229_2.png) [@mohitjain](https://forum.cursor.com/u/mohitjain)\
**Post date:** [April 28, 2026, 1:29pm UTC](https://forum.cursor.com/t/bug-report-cursor-hangs-on-file-loading-page-when-switching-workspaces-or-on-startup/158126/13 "2026-04-28T13:29:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [May 20, 2026, 1:29pm UTC](https://forum.cursor.com/t/bug-report-cursor-hangs-on-file-loading-page-when-switching-workspaces-or-on-startup/158126/14 "2026-05-20T13:29:52Z")

</div>

Closed on May 20, 2026, 1:29pm UTC

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [June 1, 2026, 4:56pm UTC](https://forum.cursor.com/t/bug-report-cursor-hangs-on-file-loading-page-when-switching-workspaces-or-on-startup/158126/16 "2026-06-01T16:56:41Z")

</div>

Hey @c6df17014f8ed5be2272,  
A fix for the git diff tab restoration hang on startup is coming in Cursor 3.6.35 (coming in the next few days). Please give it another try once you’re on that version!

cc @Ahmed_Khaled @kbrTeo @sserkan

---

<div class="post-metadata">

**Author:** ![Ahmed\_Khaled](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@Ahmed\_Khaled](https://forum.cursor.com/u/Ahmed_Khaled)\
**Post date:** [June 9, 2026, 4:26am UTC](https://forum.cursor.com/t/bug-report-cursor-hangs-on-file-loading-page-when-switching-workspaces-or-on-startup/158126/18 "2026-06-09T04:26:34Z")

</div>

Hey @Colin  
The bug still exists  
at least in Linux  
**Version Information**  
Version: 3.7.19  
VS Code Extension API: 1.105.1  
Commit: 80c653c2c3528e65016a0d304b54486084b470b0  
Date: 2026-06-07T01:42:56.126Z  
Layout: editor  
Build Type: Stable  
Release Track: Default  
Electron: 39.8.1  
Chromium: 142.0.7444.265  
Node.js: 22.22.1  
V8: 14.2.231.22-electron.0  
xterm.js: 6.1.0-beta.256  
OS: Linux x64 6.17.0-35-generic

However, I noticed that the bug only occurs when the Terminal is opened in the bottom panel. If it’s opened in the Output panel, it works normally.

(Not working exmaple) Bottem panel was on the terminal before reopening

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/7/e/7e05956a4a11211871f777b61b09b9f378324f6e.png)

(Working example) The bottom panel was on the Output before reopening

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/b/7/b7958e4ce5997faa8f0bcf78e5f1dbb096b0f47f.png)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [June 9, 2026, 12:24pm UTC](https://forum.cursor.com/t/bug-report-cursor-hangs-on-file-loading-page-when-switching-workspaces-or-on-startup/158126/20 "2026-06-09T12:24:10Z")

</div>

Hi @Ahmed_Khaled

> [@Ahmed\_Khaled](#):
>
> However, I noticed that the bug only occurs when the Terminal is opened in the bottom panel. If it’s opened in the Output panel, it works normally.

This, combined with @c6df17014f8ed5be2272’s instructions from earlier:

> [@c6df17014f8ed5be2272](#):
>
> maybe it use **submodules**
> 
> ```auto
> git init
> mkdir test-for-cursor
> cd test-for-cursor
> git init
> go mod init test-for-cursor
> git add go.mod
> 
> ```

I can reproduce perfectly. Will send over to the team.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [June 15, 2026, 1:08pm UTC](https://forum.cursor.com/t/bug-report-cursor-hangs-on-file-loading-page-when-switching-workspaces-or-on-startup/158126/23 "2026-06-15T13:08:12Z")

</div>

@Ahmed_Khaled @c6df17014f8ed5be2272

A fix should be shipped for the above case in _3.7.36_+! Please give it a try.

Thanks again for the precise reproducer.
