# workspace: Fix SSH remote restore on second open \+ Fix panel not opening automatically on new SSH remote \(\#27830\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 8be5ed22f6e01089cfa76f622fc07019642df24f

Requested commit: 8be5ed22f6e01089cfa76f622fc07019642df24f

Commit: 8be5ed22f6e01089cfa76f622fc07019642df24f

Tree: f66ae62e751cebcac3ec5ed8e049b868fdc63a0f

Author: Smit Barmase

Committer: GitHub

## Message

```
workspace: Fix SSH remote restore on second open + Fix panel not opening automatically on new SSH remote (#27830)

Closes #26902

- We used to serialize SSH remote only when opened via recent entries,
and not on first time. This broke restore, when opening same folder for
second time from recent entries. Once opened for second time, restoring
used to. work correctly. This PR fixes this by serializing when opened
for first time.

- We didn't handle window replace post worktree creation in first time
flow, this resulted in project panel not opening automatically like it
does with recent entries, or local projects. This PR fixes it by
following same flow as recent entries.

Release Notes:

- Fixed SSH remote not restoring when opening for second time.
- Fixed project panel not opening when opening new SSH remote folder.
```

## Parents

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

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