# acp_thread: Support absolute file mentions with row fragments \(\#53229\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6dd03c9fb8e9f9d97c88a65a54b799c8eeea8a00

Requested commit: 6dd03c9fb8e9f9d97c88a65a54b799c8eeea8a00

Commit: 6dd03c9fb8e9f9d97c88a65a54b799c8eeea8a00

Tree: 3b2396b695f478de66bf7262e3b8410e2e5fda04

Author: Revantark

Committer: GitHub

## Message

```
acp_thread: Support absolute file mentions with row fragments (#53229)

Sometimes the contents in the agent's thread are direct file links.
Codex ACP almost every time uses absolute file paths instead of
file://path/to/file. This is resulting in an error described in the
#49978 .


Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #49978

Release Notes:

- Fixed absolute path mentions in `acp_thread` so direct file references
(including `:line` and `#Lline` formats) now open correctly instead of
resolving to invalid/empty files.

---------

Co-authored-by: Eric Holk <eric@zed.dev>
```

## Parents

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

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