You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incorrect warning "The model wants to edit files outside of your workspace" (if using symlinks?) #289094
Notice how on each existing file change, the chat will prompt with this warning:
Allow edits to sensitive files?
The model wants to edit files outside of your workspace (create-vscode-directory-structure.bat). Do you want to allow this?
The file is clearly in the workspace folder.
Actually this seems to be a similar issue as already described in #276392 but in my case all folders in my workspace are symbolic links on Windows. If I open the directory directly and force the agent to edit the file it works without prompting. So it seems the problem still exists for symbolic links. But I'm pretty sure it worked a while ago but I cannot say exactly when the behavior changed.
So probably my first question would be, is it supposed to work for symbolic links?
I concur. In my case, I am working with the Remote SSH extension in a HPC where all the directories are symlinks. I only noticed this starting 1.109.0, but I failed to retroactively bisect a version without this problem.
I’m seeing the same issue, specifically with writes: reads through the symlinked workspace folders work, but when the agent tries to edit a file that is visibly inside the workspace, VS Code warns that it is outside the workspace and blocks the write. The workspace contains directories symlinked to their real locations outside the workspace root.
The problem is not that the target is unreadable; it’s that the write permission check appears to treat the symlink target as outside the workspace, even though the file is accessed through a directory included in the workspace.
Expected behavior: writes through a workspace symlink should be treated as writes to files in that workspace, subject to the normal workspace permission policy. The user chose the symlink layout, so VS Code should not silently redefine that workspace boundary based on the resolved target path. Could you clarify whether this is fixed in a current release, and what workaround is recommended?
Activity
conjuncts commentedon Feb 5, 2026
I concur. In my case, I am working with the Remote SSH extension in a HPC where all the directories are symlinks. I only noticed this starting 1.109.0, but I failed to retroactively bisect a version without this problem.
byron-hawkins commentedon Nov 8, 2026
I’m seeing the same issue, specifically with writes: reads through the symlinked workspace folders work, but when the agent tries to edit a file that is visibly inside the workspace, VS Code warns that it is outside the workspace and blocks the write. The workspace contains directories symlinked to their real locations outside the workspace root.
The problem is not that the target is unreadable; it’s that the write permission check appears to treat the symlink target as outside the workspace, even though the file is accessed through a directory included in the workspace.
Expected behavior: writes through a workspace symlink should be treated as writes to files in that workspace, subject to the normal workspace permission policy. The user chose the symlink layout, so VS Code should not silently redefine that workspace boundary based on the resolved target path. Could you clarify whether this is fixed in a current release, and what workaround is recommended?
connor4312 commentedon Nov 9, 2026
Should be fixed on the latest Insiders.
This is very intentional and required for security. See: many recent CVE's.