# remote: Close window when SSH connection fails \(\#41782\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b625263989201a1eab65bf08dd73ffea121600af

Requested commit: b625263989201a1eab65bf08dd73ffea121600af

Commit: b625263989201a1eab65bf08dd73ffea121600af

Tree: c86492bef0b58d511343432bb2e516cc44f44564

Author: kallyaleksiev

Committer: GitHub

## Message

```
remote: Close window when SSH connection fails (#41782)

## Context 

This PR closes issue https://github.com/zed-industries/zed/issues/41781

It essentially `matches` the result of opening the connection here
https://github.com/zed-industries/zed/blob/f7153bbe8a869d0e2b25efed64fd7e4217899b63/crates/recent_projects/src/remote_connections.rs#L650

and adds a Close / Retry alert that upon 'Close' closes the new window
if the result is an error
```

## Parents

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

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