Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
I’m posting this because I’m fed up.
I work in a firmware folder and I told the agent, clearly, to stay there. Do not leave that directory. I shouldn’t have to babysit it. If I wanted to do the job myself, I would.
It still went outside the workspace, up into the hardware/schematics, without permission. When I asked how it knew something it could only have learned from those files, it admitted it had no permission and did it anyway.
Then it got cocky about how it found it.
Even when the technical answer is right, that is not acceptable. A correct result does not give the agent a pass to ignore restrictions I set. “I’ll try not to next time” is useless. I cannot sit there watching every tool call.
I’m indignant. This keeps happening and I’m done with it. If I put a boundary on the workspace, the agent has to respect it. Full stop. Cursor needs to enforce that, not leave it to me to police a model that does whatever it wants.
Steps to Reproduce
- Open Cursor IDE with the workspace set to a nested folder (in my case firmware/SOUNDER-EXT). Parent folders contain other project files (hardware/schematics) that must stay out of scope.
- In Agent chat, tell the agent explicitly: stay inside this workspace folder; do not read, search, or leave that directory.
- Ask a question whose answer happens to exist in a parent folder (I asked why the board stays powered after unplug).
- The agent still searches/reads files outside the workspace (parent hardware schematics) without permission.
- When asked how it knew that, it admits it had no permission and did it anyway.
Expected Behavior
If I restrict the agent to the open workspace folder, it must not read, search, or traverse anything outside that folder. A clear instruction to stay inside the workspace must be enforced, not ignored when the answer looks easier to find elsewhere. The agent should refuse or say it cannot leave the workspace, instead of going into parent directories on its own.
Operating System
Linux
Version Information
Version: 3.27.22
VS Code Extension API: 1.128.0
Commit: b1aa50cb6db84fd3e8c808259cb172ea73425c10
Date: 2026-10-27T00:33:02.045Z
Layout: IDE
Build Type: Stable
Release Track: Default
Electron: 42.11.16
Chromium: 148.0.7778.280
Node.js: 24.19.0
V8: 14.8.178.38-electron.0
xterm.js: 6.1.0-beta.291
OS: Linux x64 7.0.0-42-generic
For AI issues: which model did you use?
Grok 4.6
For AI issues: add Request ID with privacy disabled
Privacy Mode stays on; I will not share a Request ID
Additional Information
This does not stop me from using Cursor today, but if workspace restrictions are not enforced I will have to look at other tools.
Does this stop you from using Cursor
No - Cursor works, but with this issue