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"
/>
This commit is contained in:
Daiki Takagi
2025-12-16 22:43:23 +09:00
committed by GitHub
parent 37bd27b2a8
commit 0362e301f7
3 changed files with 20 additions and 1 deletions

1
Cargo.lock generated
View File

@@ -37,6 +37,7 @@ dependencies = [
"terminal",
"ui",
"url",
"urlencoding",
"util",
"uuid",
"watch",