Hi Eamon,
This is a known bug in the Glass layout’s git integration. Your console warnings (getGitRoot returned empty for known cwd) confirm the exact issue - the Changes panel loses track of the working directory during initialization, causing it to show “Initialize Repository” even though the repo is valid (as your status bar and terminal correctly confirm).
You may find this related thread helpful: Agents Window: GitProvider spawns git without CWD
A few workarounds while the fix is in progress:
-
Open an Editor Window (
Ctrl+Shift+P>Open Editor Window) — its Source Control panel works correctly for the same repos. -
Reload Window (
Ctrl+Shift+P>Developer: Reload Window) — sometimes re-establishes the connection, though it may not work consistently for newly initialized repos. -
Fully quit and reopen Cursor (not just reload) — this has resolved it for some users.
Our team is actively working on this.