# Fix worktree trust not applied on window reuse \(\#46623\) · gitcafe/zed

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

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

Visibility: public

Requested revision: bf3cab6ae6a5d42991d214ab80e487aade4eb21a

Requested commit: bf3cab6ae6a5d42991d214ab80e487aade4eb21a

Commit: bf3cab6ae6a5d42991d214ab80e487aade4eb21a

Tree: d375cb7a3421ab5368eb7c0e09f245400cae60c3

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Fix worktree trust not applied on window reuse (#46623)

New workspace/window creates a different `WeakEntity<WorktreeStore>` for
the same path, which was not considered before.

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

Release Notes:

- Fixed worktree trust not applied in window reuse
```

## Parents

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

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