# agent: Improve generating dots display \(\#32421\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 3db00384f40cff76c5bf3119ac171e16861daf0f

Requested commit: 3db00384f40cff76c5bf3119ac171e16861daf0f

Commit: 3db00384f40cff76c5bf3119ac171e16861daf0f

Tree: 31c3ca7f3f97b8463705a2e81040730c9d91543e

Author: Danilo Leal

Committer: GitHub

## Message

```
agent: Improve generating dots display (#32421)

Previously, upon hitting the "Continue" button to restart an interrupted
thread due to consecutive tool calls reaching its limit, you wouldn't
see the loading dots and the UI would be a weird state. This PR improves
when these loading dots actually show up, including in their conditional
a check for `message.is_hidden`.

Also took advantage of the opportunity to quickly organize some of these
variables. The `render_message` function could potentially be chopped up
in more smaller pieces. Lots of things going on here.

Release Notes:

- N/A
```

## Parents

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

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