# client: Reconnect cloud websocket after it disconnects \(\#57078\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 8d28ca5c01a092a9249ed6bef8af8d4eeaf637ba

Requested commit: 8d28ca5c01a092a9249ed6bef8af8d4eeaf637ba

Commit: 8d28ca5c01a092a9249ed6bef8af8d4eeaf637ba

Tree: 42cc4d843bfeb50c60d5ed25c94810d46f4a8de0

Author: Tom Houlé

Committer: GitHub

## Message

```
client: Reconnect cloud websocket after it disconnects (#57078)

The cloud websocket was established once during sign-in and never
re-established. On any server restart or transient network drop the
connection task exited. yawc itself does not reconnect.

This wraps `connect_to_cloud` in a long-lived task that re-establishes
the websocket with exponential backoff and jitter, reusing
`INITIAL_RECONNECTION_DELAY` and `MAX_RECONNECTION_DELAY` so the
behavior matches the Collab reconnect loop in the same module.

Part of CLO-713.

Release Notes:

- N/A
```

## Parents

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

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