agent: More sandboxing changes (#60111)

Large change to sandboxing:
- fixes a nasty TOCTOU relating to a symlink swap attack, documented in
the `sandboxing/README.md`
- Adds UI and restrictions when in an untrusted workspace
- Adds tests for (soon to be removed) git support


---

Release Notes:

- N/A or Added/Fixed/Improved ...
4a99aa870eCameron Mcloughlin committed on 6/30/2026, 11:10:04 AM· committed by GitHubparent3856272
30 files changedLine totals unavailable