[Glass 3.7.21] Explorer shows empty folder after directory rename + .gitignore change (files exist on disk)

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

[Glass 3.7.21] Explorer shows empty folder after directory rename + .gitignore change (files exist on disk)

Steps to Reproduce

Steps to reproduce
A directory was fully ignored in .gitignore (e.g. test-data/)
Renamed it to demo-project/ and updated .gitignore:
Removed the whole-directory ignore
Ignored only generated paths:
demo-project/runs/*
!demo-project/runs/.gitkeep
demo-project/sources/repos/*
!demo-project/sources/repos/.gitkeep
git add committed tracked files under demo-project/benchmarks/** (22 files)
In Explorer (Glass), expand demo-project/benchmarks/

Expected Behavior

Explorer lists children such as fineract/, fineract-fast/, fineract-full/, score_expected_checks.py, etc.

Actual
demo-project/benchmarks/ appears empty in Explorer
Files exist on disk:
ls demo-project/benchmarks/

fineract fineract-fast fineract-full score_expected_checks.py …

Cmd+P → demo-project/benchmarks/fineract/train/items.json opens normally
Workarounds
Developer: Reload Window (sometimes works)
Re-open the workspace folder or restart Cursor
Impact
Common when migrating from a fully gitignored tree to a partially tracked layout. The UI looks broken even though data is intact.

Attachments (if possible)
Screenshot: empty benchmarks in Explorer
Screenshot: same path working via terminal / Quick Open
Developer Tools errors related to file watcher or git (if any)

Operating System

MacOS

Version Information

Environment
Item Value
Cursor
3.7.21 (Stable, Default)
VS Code Extension API
1.105.1
Commit
517f696d8ab6c53eb04fbfdaae705cd146bf3460
Build Date
2026-06-07T21:46:09.237Z
Layout
glass
Electron
39.8.1 / Chromium 142.0.7444.265 / Node 22.22.1
OS
Darwin arm64 25.5.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the detailed report. The version and steps really help.

This is a known bug. The file tree in the Agents Window Glass can sometimes cache an empty or outdated directory listing after a spike of file system events. Your case folder rename plus editing .gitignore plus running git add for 22 files from the terminal is exactly that scenario. The files on disk are fine, it’s just a UI sync issue in the tree.

Workarounds for now:

  • Developer: Reload Window, you already found it can help sometimes
  • Switch to another editor tab and back
  • The classic Explorer in the main editor window should stay reliable

A fix is already in and should ship in one of the next updates, but I can’t share an exact ETA yet. Once you update to the latest version, let me know if you can still reproduce it.