# Lay the groundwork for collaborating on assistant panel \(\#13991\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 8944af7406e68266004b05aaaf7e6ff74413490d

Requested commit: 8944af7406e68266004b05aaaf7e6ff74413490d

Commit: 8944af7406e68266004b05aaaf7e6ff74413490d

Tree: 5a593180fd209e7f79710d06092bc0df803a59cf

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Lay the groundwork for collaborating on assistant panel (#13991)

This pull request introduces collaboration for the assistant panel by
turning `Context` into a CRDT. `ContextStore` is responsible for sending
and applying operations, as well as synchronizing missed changes while
the connection was lost.

Contexts are shared on a per-project basis, and only the host can share
them for now. Shared contexts can be accessed via the `History` tab in
the assistant panel.

<img width="1819" alt="image"
src="https://github.com/zed-industries/zed/assets/482957/c7ae46d2-cde3-4b03-b74a-6e9b1555c154">


Please note that this doesn't implement following yet, which is
scheduled for a subsequent pull request.

Release Notes:

- N/A
```

## Parents

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

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