# toolchains: Fix persistence by not relying on unstable worktree id \(\#45357\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 69f6eeaa3ae821c43b7bf0dfc241c2792573b338

Requested commit: 69f6eeaa3ae821c43b7bf0dfc241c2792573b338

Commit: 69f6eeaa3ae821c43b7bf0dfc241c2792573b338

Tree: 13f4ed9ad993789ce0b485d1e9b947985bf77822

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
toolchains: Fix persistence by not relying on unstable worktree id (#45357)

Closes #42268
We've migrated user selections when a given workspace has a single
worktree (as then we could determine what the target worktree is).

Release Notes:

- python: Fixed selected virtual environments not being
persisted/deserialized correctly within long-running Zed sessions (where
multiple different projects might've been opened). This is a breaking
change for users of multi-worktree projects - your selected toolchain
for those projects will be reset.

Co-authored-by: Dino <dino@zed.dev>
```

## Parents

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

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