Skip to content

agent_ui: Improve loading state when there's only a terminal call#50501

Merged
danilo-leal merged 2 commits intomainfrom
held-on-terminal
Mar 2, 2026
Merged

agent_ui: Improve loading state when there's only a terminal call#50501
danilo-leal merged 2 commits intomainfrom
held-on-terminal

Conversation

@danilo-leal
Copy link
Copy Markdown
Member

In the thread view, when the last block is an ongoing terminal tool call, we're not waiting for the LLM to generate content, but rather, we're waiting for the command to run so its output can be sent to the model. With that in mind, it doesn't make sense for the generating loading spinner to be visible. So, this PR, removes it. But I also took the opportunity to refine the terminal card header a bit, as well as make the "command running" spinner, as well as the stop button, visible for external agents, too.

Screenshot.2026-03-02.at.12.46.mp4

In the video, you can see that given we only have a running-terminal tool call, there's no generation loading spinner.

Release Notes:

  • Agent: Improved loading state for the thread view when there's only a running terminal command.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Mar 2, 2026
@zed-community-bot zed-community-bot bot added the staff Pull requests authored by a current member of Zed staff label Mar 2, 2026
@danilo-leal danilo-leal merged commit 805e32c into main Mar 2, 2026
38 checks passed
@danilo-leal danilo-leal deleted the held-on-terminal branch March 2, 2026 16:02
tahayvr pushed a commit to tahayvr/zed that referenced this pull request Mar 4, 2026
…d-industries#50501)

In the thread view, when the last block is an ongoing terminal tool
call, we're not waiting for the LLM to generate content, but rather,
we're waiting for the command to run so its output can be sent to the
model. With that in mind, it doesn't make sense for the generating
loading spinner to be visible. So, this PR, removes it. But I also took
the opportunity to refine the terminal card header a bit, as well as
make the "command running" spinner, as well as the stop button, visible
for external agents, too.


https://github.com/user-attachments/assets/c7e2865a-af9b-416b-a06a-908dffb916da

In the video, you can see that given we only have a running-terminal
tool call, there's no generation loading spinner.

Release Notes:

- Agent: Improved loading state for the thread view when there's only a
running terminal command.
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.

1 participant