Skip to content

Avoid linkifying non-interactive code spans#57515

Merged
MartinYe1234 merged 1 commit into
mainfrom
dont-link-tool-call-ui-elements
May 22, 2026
Merged

Avoid linkifying non-interactive code spans#57515
MartinYe1234 merged 1 commit into
mainfrom
dont-link-tool-call-ui-elements

Conversation

@MartinYe1234

Copy link
Copy Markdown
Contributor

Summary

  • Skip code-span link resolution when markdown prevents mouse interaction
  • Add regression coverage for non-interactive code spans

Tests

  • cargo test -p markdown test_code_span_link_ignores_code_when_mouse_interaction_is_prevented

Release Notes:

  • Fixed extra link styling on file paths in agent tool call labels.

@MartinYe1234 MartinYe1234 self-assigned this May 22, 2026
@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label May 22, 2026
@zed-community-bot zed-community-bot Bot added the staff Pull requests authored by a current member of Zed staff label May 22, 2026
@MartinYe1234 MartinYe1234 marked this pull request as ready for review May 22, 2026 17:07
@MartinYe1234 MartinYe1234 added this pull request to the merge queue May 22, 2026
Merged via the queue into main with commit 2c26e5e May 22, 2026
44 checks passed
@MartinYe1234 MartinYe1234 deleted the dont-link-tool-call-ui-elements branch May 22, 2026 17:23
TomPlanche pushed a commit to TomPlanche/zed that referenced this pull request Jun 2, 2026
## Summary

- Skip code-span link resolution when markdown prevents mouse
interaction
- Add regression coverage for non-interactive code spans

## Tests

- cargo test -p markdown
test_code_span_link_ignores_code_when_mouse_interaction_is_prevented

Release Notes:

- Fixed extra link styling on file paths in agent tool call labels.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants