Skip to content

agent_ui: Fix auto-scroll in subagent cards#52719

Merged
danilo-leal merged 1 commit intomainfrom
subagents-auto-scroll
Mar 30, 2026
Merged

agent_ui: Fix auto-scroll in subagent cards#52719
danilo-leal merged 1 commit intomainfrom
subagents-auto-scroll

Conversation

@danilo-leal
Copy link
Copy Markdown
Member

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.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Mar 30, 2026
@zed-codeowner-coordinator zed-codeowner-coordinator bot requested review from a team, benbrandt and rtfeldman and removed request for a team March 30, 2026 10:44
@zed-community-bot zed-community-bot bot added the staff Pull requests authored by a current member of Zed staff label Mar 30, 2026
@danilo-leal danilo-leal merged commit 4317359 into main Mar 30, 2026
41 checks passed
@danilo-leal danilo-leal deleted the subagents-auto-scroll branch March 30, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants