The agent can't leave the sandbox
Every tool call runs inside your operating system's sandbox, on a copy of your project, so your real files are never changed by the agent. If a sandbox layer can't be applied, the tool call doesn't run, and there is no option to turn the sandbox off.