# Show red X icon for interrupted subagents \(\#47499\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6b0b95f539c1cac659cfa14e04be3816a48b68a9

Requested commit: 6b0b95f539c1cac659cfa14e04be3816a48b68a9

Commit: 6b0b95f539c1cac659cfa14e04be3816a48b68a9

Tree: 21c7237b80086bc74297a296cb81eb4c6bb44b8c

Author: Richard Feldman

Committer: GitHub

## Message

```
Show red X icon for interrupted subagents (#47499)

<img width="677" height="218" alt="Screenshot 2026-01-23 at 11 59 24 AM"
src="https://github.com/user-attachments/assets/864c706f-6f9f-44dd-a18c-509f2bed164f"
/>


When a thread is interrupted while subagents are running, the subagent
cards now show a red X icon instead of a green checkmark. This provides
clearer visual feedback that the subagent was canceled rather than
completed successfully.

The icon logic now handles three states:
- **Spinner**: when status is Pending or InProgress
- **Red X**: when status is Canceled, Failed, or Rejected  
- **Green checkmark**: when status is Completed

This matches the existing pattern used elsewhere in the codebase for
showing error states on tool calls.

(No release notes because subagents are still behind a feature flag.)

Release Notes:

- N/A
```

## Parents

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

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