# agent_ui: Fix collapsing bug with thinking blocks in auto-mode \(\#52916\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ed97a043a17c52842cdf0e8ee042c9db5053bf22

Requested commit: ed97a043a17c52842cdf0e8ee042c9db5053bf22

Commit: ed97a043a17c52842cdf0e8ee042c9db5053bf22

Tree: ae328366a156856f3ea72afe9a6e9b28ebec2874

Author: Danilo Leal

Committer: GitHub

## Message

```
agent_ui: Fix collapsing bug with thinking blocks in auto-mode (#52916)

Quick follow up to https://github.com/zed-industries/zed/pull/52874
where expanded thinking blocks, when in auto-mode, wouldn't collapse
again.

Release Notes:

- N/A
```

## Parents

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

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