# Fix external tool call locations \(\#58367\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6014f5945192c4373d76a5353fe9c8c4a7f671e7

Requested commit: 6014f5945192c4373d76a5353fe9c8c4a7f671e7

Commit: 6014f5945192c4373d76a5353fe9c8c4a7f671e7

Tree: bb38e562392e67bb78b17ccdbba9c949b5fbbe87

Author: MartinYe1234

Committer: GitHub

## Message

```
Fix external tool call locations (#58367)

Summary:

- Allow agent tool-call locations outside visible worktrees to resolve
as local buffers.
- Fall back to opening absolute paths from the tool-call click handler.

Tests:

- cargo test -p acp_thread
test_tool_call_location_resolves_external_file
- cargo check -p agent_ui

Closes AI-362
Release Notes:

- Fixed opening agent-created files outside the current project, such as
global skill files.
```

## Parents

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

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