# acp: Fix \`@mentions\` when remoting from Windows to Linux \(\#38882\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ecc35fcd9ace679d2b8f8bc393c56815c04909a8

Requested commit: ecc35fcd9ace679d2b8f8bc393c56815c04909a8

Commit: ecc35fcd9ace679d2b8f8bc393c56815c04909a8

Tree: bebe921ef60e7401213a7be9756d4610655ff4e2

Author: Cole Miller

Committer: GitHub

## Message

```
acp: Fix `@mentions` when remoting from Windows to Linux (#38882)

Closes #38620

`Url::from_file_path` and `Url::from_directory_path` assume the path
style of the target they were compiled for, so we can't use them in
general. So, switch from `file://` to encoding the absolute path (for
mentions that have one) as a query parameter, which works no matter the
platforms. We'll still parse the old `file://` mention URIs for
compatibility with thread history.

Release Notes:

- windows: Fixed a crash when using `@mentions` in agent threads when
remoting from Windows to Linux or WSL.
```

## Parents

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

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