# acp_thread: Decode file:// mention paths so non-ASCII names render correctly \(\#44983\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0362e301f72c4bcec766e8d309c2c2cdc3ba32eb

Requested commit: 0362e301f72c4bcec766e8d309c2c2cdc3ba32eb

Commit: 0362e301f72c4bcec766e8d309c2c2cdc3ba32eb

Tree: 7c5b5a44623f6b999b2a79af8c066f5b61e6acc5

Author: Daiki Takagi

Committer: GitHub

## Message

```
acp_thread: Decode file:// mention paths so non-ASCII names render correctly (#44983)

## Summary

This fixes a minor bug I found #44981 

- Fix percent-encoded filenames appearing in agent mentions after
message submission.
- Decode file:// paths in MentionUri::parse using the existing
urlencoding crate (already used elsewhere in the codebase).
- Add tests for non-ASCII file URIs.

## Screenshots

<img width="409" height="116" alt="image"
src="https://github.com/user-attachments/assets/32ef033b-6232-47c5-80c7-d5247d5dae88"
/>
```

## Parents

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

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