# Don't panic when collaborating with older Zed versions \(\#7162\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 689d43047d5d175596412698430a17df4a06ce0e

Requested commit: 689d43047d5d175596412698430a17df4a06ce0e

Commit: 689d43047d5d175596412698430a17df4a06ce0e

Tree: f65daf4022f21f6e8560eb2df8a7f9141e846460

Author: Conrad Irwin

Committer: GitHub

## Message

```
Don't panic when collaborating with older Zed versions (#7162)

Older Zed versions may send a buffer id of 0, which is no-longer
supported. (as of #6993)

This doesn't fix that, but it does ensure that we don't panic in the
workspace by maintaining the invariant that from_proto_state returns
Some(Task) if the variant matches.

It also converts the panic to an error should something similar happen
again in the future.


Release Notes:

- N/A
```

## Parents

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

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