# acp: Register ACP sessions before load replay \(\#54431\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2ca94a6032cb043c06174ebd84c3b972888b775d

Requested commit: 2ca94a6032cb043c06174ebd84c3b972888b775d

Commit: 2ca94a6032cb043c06174ebd84c3b972888b775d

Tree: 05584126dbd39a4d75d678a02159e5ba21e202fe

Author: Ben Brandt

Committer: GitHub

## Message

```
acp: Register ACP sessions before load replay (#54431)

Insert sessions before awaiting `session/load` so replayed
`session/update` notifications can find the thread.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- acp: Fix for some replay events getting dropped when loading a
previous session.
```

## Parents

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

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