# Fix panel deserialization \(\#4198\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c5465d26f8c937a8d273f773bcf3578175b2e70a

Requested commit: c5465d26f8c937a8d273f773bcf3578175b2e70a

Commit: c5465d26f8c937a8d273f773bcf3578175b2e70a

Tree: 1abd0ae3446637b0954e2a96cbfcfc985f2a1792

Author: Conrad Irwin

Committer: GitHub

## Message

```
Fix panel deserialization (#4198)

In the old world, panel loading happened strictly before workspace
deserialization. Now it's inverted.

Fix this by storing on the dock the serialized state so they can restore
state as panels are loaded.

[[PR Description]]

Release Notes:

- Fixed Zed forgetting which panels were open on boot.
([#2406](https://github.com/zed-industries/community/issues/2406)).
```

## Parents

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

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

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