# acp_thread: Fix @mention file path format \(\#41310\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2579f86bcd62178263528157863ff44a717d3139

Requested commit: 2579f86bcd62178263528157863ff44a717d3139

Commit: 2579f86bcd62178263528157863ff44a717d3139

Tree: 023aad153da0afe77d63360ce74b6cc696bf4cad

Author: Bennet Fenner

Committer: GitHub

## Message

````
acp_thread: Fix @mention file path format (#41310)

After #38882 we were always including file/directory mentions as
`zed:///agent/file?path=a/b/c.rs`.
However, for most resource links (files/directories/symbols/selections)
we want to use a common format, so that ACP servers don't have to
implement custom handling for parsing `ResourceLink`s coming from Zed.

This is what it looks like now:
```
[@index.js](file:///Users/.../projects/reqwest/examples/wasm_github_fetch/index.js) 
[@wasm](file:///Users/.../projects/reqwest/src/wasm) 
[@Error](file:///Users/.../projects/reqwest/src/async_impl/client.rs?symbol=Error#L2661:2661) 
[@error.rs (23:27)](file:///Users/.../projects/reqwest/src/error.rs#L23:27) 
```

Release Notes:

- N/A

---------

Co-authored-by: Cole Miller <cole@zed.dev>
````

## Parents

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

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