# Add gutter action to clear run status \(\#61375\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b6dac6ca30df1c3bd4b7d34f53ac64da6cd8a4a0

Requested commit: b6dac6ca30df1c3bd4b7d34f53ac64da6cd8a4a0

Commit: b6dac6ca30df1c3bd4b7d34f53ac64da6cd8a4a0

Tree: 9007f4222eb2a2e8c434fe6a4005e71069d46257

Author: Ruslan Semagin

Committer: GitHub

## Message

```
Add gutter action to clear run status (#61375)

# Objective

Add a way to manually clear completed run statuses from the gutter.

Folow-up to #61095 

This follows up on feedback from the previous gutter run status PR.
Currently, editing a file clears run statuses automatically, but there
was no direct way to clear a completed status without changing the file.

## Solution

- Added a `Clear Run Status` entry to the gutter context menu.
- Show the entry only when the row has a completed run status.
- Clear the stored run status for that runnable when selected.
- Keep running statuses unchanged, so this does not behave like task
cancellation.

## Testing

- Ran `cargo check -p editor`.
- Manually ran a test from the gutter and waited for a completed status.
- Verified right-clicking the gutter icon shows `Clear Run Status`.
- Verified selecting `Clear Run Status` clears the status icon.
- Verified the action is not shown for rows without a completed run
status.

## Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable


[after.webm](https://github.com/user-attachments/assets/1ae284e1-03b1-4842-a63e-9d66c290b325)

---

Release Notes:

- Improved gutter run statuses by allowing completed statuses to be
cleared from the gutter context menu.
```

## Parents

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

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