# agent_ui: Fix auto-scroll in subagent cards \(\#52719\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4317359bcf12dfbdab45a5385e2a2c399d3f6767

Requested commit: 4317359bcf12dfbdab45a5385e2a2c399d3f6767

Commit: 4317359bcf12dfbdab45a5385e2a2c399d3f6767

Tree: bd8a6c0c1c8624b05f3e0d722351923744261f05

Author: Danilo Leal

Committer: GitHub

## Message

```
agent_ui: Fix auto-scroll in subagent cards (#52719)

Due to the async nature of markdown parsing, sometimes subagent cards
would not scroll fully to the bottom of the content because the
`scroll_to_bottom` function was being called just while the agent was
running... and sometimes, it'd finish running before the markdown had
fully finished parsing. The solution is to remove the `is_running`
conditional.

Release Notes:

- Agent: Improved auto-scroll of subagent content in preview cards,
ensuring the content is always visible until the end.
```

## Parents

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

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