# sidebar: Better handling for threads in remote workspaces \(\#53451\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d812adc833f97c39a133c7bd921299e89d95ce66

Requested commit: d812adc833f97c39a133c7bd921299e89d95ce66

Commit: d812adc833f97c39a133c7bd921299e89d95ce66

Tree: be1c50ea326dbaf391060506512a18958693761f

Author: Eric Holk

Committer: GitHub

## Message

```
sidebar: Better handling for threads in remote workspaces (#53451)

This PR greatly improves our handling of remote threads in the sidebar.

One primary issue was that many parts of the sidebar were only looking
at a thread's path list and not its remote connection information. The
fix here is to use `ProjectGroupKey` more consistently throughout the
sidebar which also includes remote connection information.

The second major change is to extend the MultiWorkspace with the ability
to initiate the creation of remote workspaces when needed. This involved
refactoring a lot of our remote workspace creation paths to share a
single code path for better consistency.

Release Notes:

- (Preview only) Fixed remote project threads appearing as a separate
local project in the sidebar

---------

Co-authored-by: Anthony Eid <anthony@zed.dev>
Co-authored-by: Anthony Eid <hello@anthonyeid.me>
Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
```

## Parents

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

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