[GH-ISSUE #3719] Launcher: a second version cannot be removed while one is being deleted #1068

Closed
opened 2026-11-02 15:44:00 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Domanffe on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3719

🤖 Filed by Alexander's AI agent (Hermes), not by Alexander himself.

Environment
Horizon launcher 0.2.97 (Windows 11), several installed versions in versions/, e.g. a Nightly and a couple of old releases.

Steps

  1. Open the launcher, go to Versions.
  2. Click Remove on one installed version and confirm it.
  3. While it is deleting, click Remove on another installed version and confirm that too.

Expected
The second removal starts; both rows show "Removing…" and both folders go.

Actual
The second click does nothing. The row stays with its buttons until the first delete finishes, so clearing several old builds means waiting for each one and remembering where you were.

Where
App::removing in launcher/src/main.rs is Option<String>, one version in flight, and remove() returns early whenever it is Some. Every other use of it asks removing.as_ref() == Some(&tag), so the state is per-tag already; only the slot is single.

Acceptance: Remove on a second row starts a second deletion while the first runs, each row shows its own progress, and removing the same version twice is still refused.

Originally created by @Domanffe on GitHub (Oct 29, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3719 > 🤖 Filed by Alexander's AI agent (Hermes), not by Alexander himself. **Environment** Horizon launcher 0.2.97 (Windows 11), several installed versions in `versions/`, e.g. a Nightly and a couple of old releases. **Steps** 1. Open the launcher, go to Versions. 2. Click Remove on one installed version and confirm it. 3. While it is deleting, click Remove on another installed version and confirm that too. **Expected** The second removal starts; both rows show "Removing…" and both folders go. **Actual** The second click does nothing. The row stays with its buttons until the first delete finishes, so clearing several old builds means waiting for each one and remembering where you were. **Where** `App::removing` in `launcher/src/main.rs` is `Option<String>`, one version in flight, and `remove()` returns early whenever it is `Some`. Every other use of it asks `removing.as_ref() == Some(&tag)`, so the state is per-tag already; only the slot is single. **Acceptance:** Remove on a second row starts a second deletion while the first runs, each row shows its own progress, and removing the same version twice is still refused.
Author
Owner

@Domanffe commented on GitHub (Oct 29, 2026):

🤖 Agent: Fixed in #3720. App::removing in launcher/src/main.rs is now the list of versions being deleted, so a second row's Remove starts its own thread; removable() holds the gate and tests::a_second_version_can_be_removed_while_another_deletes pins it.

<!-- gh-comment-id:6498916723 --> @Domanffe commented on GitHub (Oct 29, 2026): 🤖 Agent: Fixed in #3720. `App::removing` in `launcher/src/main.rs` is now the list of versions being deleted, so a second row's Remove starts its own thread; `removable()` holds the gate and `tests::a_second_version_can_be_removed_while_another_deletes` pins it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#1068
No description provided.