The filesystem sandbox only stops the agent from writing outside the project directory. It can still run `git checkout .`, `git reset --hard`, etc. and wipe out your uncommitted changes. That all happens within the area it’s allowed to write to, so the sandbox won’t stop it.
When i'm building a product, I usually back up the repo with `git bundle` before running any riskly git commands.
Did you lose files outside the project, or uncommitted changes in the reop?