agent: Fix NTFS warning breaking terminal tool when WSL not available (#62049)

There is a bug on main and preview causes all terminal tool calls to
fail when:
- on windows
- sandboxing is not available (i.e. no WSL)
- sandboxing is enabled in settings (the default)
- the "warn windows-drive grants" setting is enabled (the default)

Example error:
<img width="352" height="79" alt="image"
src="https://github.com/user-attachments/assets/24affbec-f086-40eb-8827-ad74aabc6167"
/>

This PR fixes it by making sure we only show the check at the right time

---

Release Notes:

- N/A or Added/Fixed/Improved ...
849ec5898aCameron Mcloughlin committed on 8/3/2026, 11:53:30 AM· committed by GitHubparent35cb755
8 files changedLine totals unavailable