Cursor agent keeps losing path

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

This has been happening for a couple of days. The cursor agent keeps losing the current path and reports the path as None. I have to restart Cursor or instruct the agent on the path location. I faithfully update it on every notification. The version I am using is:

Version: 3.9.16 (Universal)
VS Code Extension API: 1.105.1
Commit: 042b3c1a4c53f2c3808067f519fbfc67b72cad80
Date: 2026-06-27T06:41:01.941Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.256
OS: Darwin arm64 25.5.0

Steps to Reproduce

It happens randomly throughout the day.

Expected Behavior

It should not use the working path.

Operating System

MacOS

Version Information

Version: 3.9.16 (Universal)
VS Code Extension API: 1.105.1
Commit: 042b3c1a4c53f2c3808067f519fbfc67b72cad80
Date: 2026-06-27T06:41:01.941Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.256
OS: Darwin arm64 25.5.0

For AI issues: which model did you use?

Opus 4.8 High

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey there! Thanks for flagging this.

Your workspace isn’t actually lost when this happens. What you’re hitting is a display glitch where Cursor’s workspace context briefly reads empty for a turn, so the agent sees the path as none and behaves as if no folder is open. Your files and project stay safe the whole time.

Instead of a full restart, try Cmd+Shift+P and then run Developer: Reload Window. It rebinds the real workspace and clears the none state much faster than quitting and reopening, and you shouldn’t need to re-tell the agent its path.

This is a known issue we’re actively tracking. There isn’t a fix in a released build yet, so Reload Window is the best workaround for now. If you ever run Reload Window and it still shows none, reply here and I’ll dig in further.