# agent_ui: Fix Agent Panel terminal New Thread panic \(\#56645\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7ef2aff7c8774ce30e525cbb955e73008c0fbbee

Requested commit: 7ef2aff7c8774ce30e525cbb955e73008c0fbbee

Commit: 7ef2aff7c8774ce30e525cbb955e73008c0fbbee

Tree: aa8c46d91383bc8a2ea4690373e7a4f154585302

Author: Smit Barmase

Committer: GitHub

## Message

```
agent_ui: Fix Agent Panel terminal New Thread panic (#56645)

Fixes a panic when `agent::NewThread` creates an Agent Panel terminal
while the workspace is already being updated.

Release Notes:

- N/A
```

## Parents

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

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