Where does the bug appear (feature/product)?
Somewhere else…
Describe the Bug
In Agents Window (Glass layout), the Changes / Local tab stays empty while IDE Source Control shows correct uncommitted changes for the same repo.
GlassDiffService knows gitRepoRoot but runs git with cwd=:
[GlassDiffService] Refresh failed (reason=immediate, cwd=, gitRepoRoot=D:/netdiffsyncer-mono): Failed to execute git
[GlassDiffService] Failed to refresh scope (scope=staged, cwd=): Failed to execute git
[GlassDiffService] Failed to refresh scope (scope=unstaged, cwd=): Failed to execute git
Log: %APPDATA%\Cursor\logs\20260722T112445\window1_wb2\renderer.log
Agent-side GitProvider.getDiffFileEntries in window1_wb1 also fails with fatal: not a git repository and error: unknown option cached. Commands with explicit --git-dir/–work-tree succeed; IDE SCM works normally.
Steps to Reproduce
- Windows 10/11, Cursor 3.12.30, Glass layout enabled.
- Open a git repo at workspace root (tested D:\NetDiffSyncer, then D:\netdiffsyncer-mono after rename).
- Make local file changes; confirm git status shows dirty files.
- Open Agents Window → Changes / Local.
- Observe empty Changes tab while IDE Source Control still shows changes.
Also tried: full Cursor restart, commit via IDE, folder rename, workspace cache reset — issue persists.
Expected Behavior
Agents Window → Changes should list staged/unstaged files matching git status.
Operating System
Windows 10/11
Version Information
Cursor 3.12.30 (stable)
Layout: Glass (glassMode: true)
OS: Windows 10/11 x64
Git: 2.45.1.windows.1
For AI issues: which model did you use?
N/A — Agents Window UI bug, not model output.
Additional Information
Related: Agent "Changes" panel stays empty while git status shows changes (closed; still reproduces in 3.12.30)
Suggested fix: GlassDiffService should pass repo context to git subprocess (-C or --git-dir + --work-tree) instead of empty cwd.
Workaround: IDE Source Control or @Commit (Diff of Working State) in agent chat.
Does this stop you from using Cursor
No - Cursor works, but with this issue