# agent: Fix NTFS warning breaking terminal tool when WSL not available \(\#62049\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/849ec5898a321eefbeb1d1beda130cc50ef43f10)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 849ec5898a321eefbeb1d1beda130cc50ef43f10

Requested commit: 849ec5898a321eefbeb1d1beda130cc50ef43f10

Commit: 849ec5898a321eefbeb1d1beda130cc50ef43f10

Tree: 258c673980f85c561253c2939cdfafa6a76e789a

Author: Cameron Mcloughlin

Committer: GitHub

## Message

```
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 ...
```

## Parents

- [35cb7558a9d9a6f2eaf31ce2e4dce4a0575820ef](https://git.cafe/gitcafe/zed/commit/35cb7558a9d9a6f2eaf31ce2e4dce4a0575820ef?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/849ec5898a321eefbeb1d1beda130cc50ef43f10?format=markdown)
