# Fix worktree trust handling of multiple projects on the same remote host \(\#45834\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 392b6184bfd9368e3db0faec69735d3955b10cbd

Requested commit: 392b6184bfd9368e3db0faec69735d3955b10cbd

Commit: 392b6184bfd9368e3db0faec69735d3955b10cbd

Tree: b102aedd1b7d60f2a0336749434a861e4dc66ebf

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Fix worktree trust handling of multiple projects on the same remote host (#45834)

Closes https://github.com/zed-industries/zed/issues/45630

Remote host location alone is not enough to distinguish between remote
worktrees: different remote projects open in different windows will have
the same remote host location and _will_ have the same `WorktreeId`.

Thus, require an associated `WorktreeStore` with all
`WorktreeId`-related trust questions, and store those IDs based on the
store key.

Release Notes:

- Fixed worktree trust handling of multiple projects on the same remote
host
```

## Parents

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

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