Skip to content

acp: Allow clickable local links in ACP threads - #50398

Closed
danielkrash wants to merge 3 commits into
zed-industries:mainfrom
danielkrash:feat/links-acp-threads
Closed

acp: Allow clickable local links in ACP threads#50398
danielkrash wants to merge 3 commits into
zed-industries:mainfrom
danielkrash:feat/links-acp-threads

Conversation

@danielkrash

@danielkrash danielkrash commented Feb 28, 2026

Copy link
Copy Markdown

See discussion in codex-acp repository -- Links in Codex response

Before you mark this PR as ready for review, make sure that you have:

  • Added a solid test coverage
  • Done a self-review taking into account security and performance aspects
  • No UI changes

Release Notes:

  • Improved ACP threads links -- added plain filesystem target support in MentionUri::parse for ACP thread links when
    input is not a URL (:// absent)
    • plain file paths(/project/src/main.ts)
    • plain directory paths
    • file selections with line ranges((/yourCode.ts:21-25)
    • file selections with column suffix(/yourCode.ts:21:25) - column ignored for navigation

Added plain filesystem target support in MentionUri::parse for ACP thread links when input is not a URL (:// absent).
@cla-bot

cla-bot Bot commented Feb 28, 2026

Copy link
Copy Markdown

We require contributors to sign our Contributor License Agreement, and we don't have @danielkrash on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@zed-community-bot zed-community-bot Bot added the first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions label Feb 28, 2026
@danielkrash

Copy link
Copy Markdown
Author

@cla-bot check

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Feb 28, 2026
@cla-bot

cla-bot Bot commented Feb 28, 2026

Copy link
Copy Markdown

The cla-bot has been summoned, and re-checked this pull request!

@SomeoneToIgnore SomeoneToIgnore added the area:ai Related to Agent Panel, Edit Prediction, Copilot, or other AI features label Feb 28, 2026
@danielkrash danielkrash changed the title Feat/links acp threads acp: Allow clickable links in ACP threads Feb 28, 2026
Changes:

- Remove `split_path_and_line_range` and restructure `parse_plain_file_location` to use `PathWithPosition` as the primary parser. `PathWithPosition` does not support ranges, so line ranges continue to be handled by `parse_line_range`.

- Also simplify `looks_like_file_path` by reusing `is_absolute` from the paths util instead of custom path handling.
@danielkrash danielkrash changed the title acp: Allow clickable links in ACP threads acp: Allow clickable local links in ACP threads Mar 1, 2026
@benbrandt

Copy link
Copy Markdown
Member

Closing in favor or #50443

@benbrandt benbrandt closed this Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ai Related to Agent Panel, Edit Prediction, Copilot, or other AI features cla-signed The user has signed the Contributor License Agreement first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants