# agent_ui: Prevent race conditions inside thread metadata store \(\#52819\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 080e80df2b99c8032ac27edf7e0daece671a1d9a

Requested commit: 080e80df2b99c8032ac27edf7e0daece671a1d9a

Commit: 080e80df2b99c8032ac27edf7e0daece671a1d9a

Tree: 0678ed82d2d8e180fe4beb0c0a67feaf9513bb7b

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
agent_ui: Prevent race conditions inside thread metadata store (#52819)

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:

- N/A

---------

Co-authored-by: Gaauwe Rombouts <mail@grombouts.nl>
```

## Parents

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

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