[PR #3720] [MERGED] Launcher: remove several versions at once #5168

Closed
opened 2026-11-03 05:10:42 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3720
Author: @Domanffe
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @ludovic111

Base: main ← Head: fix/launcher-remove-queue


📝 Commits (3)

  • 3b3560d Launcher: remove several versions at once
  • 24c3239 Launcher: keep removable beside its own doc comment
  • ccb85be Launcher: a version stops counting as installed when its removal starts

📊 Changes

2 files changed (+43 additions, -15 deletions)

View changed files

📝 launcher/src/backend.rs (+3 -0)
📝 launcher/src/main.rs (+40 -15)

📄 Description

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

Fixes #3719.

The Versions page could delete one version at a time: App::removing was Option<String>, and remove() returned early whenever it was Some, so a second row's Remove did nothing until the first delete finished. A player clearing several old builds had to wait for each one.

removing becomes a Vec<String> of the versions in flight: a row's Remove starts its own thread while another delete runs, Msg::Removed drops only its own tag, and the "Removing…" row, the Play/Install gates and the row-keeping check ask whether that tag is in the list. The gate itself moved into removable() so the case can be tested.

Checked in launcher/ with cargo test a_second_version:

test tests::a_second_version_can_be_removed_while_another_deletes ... ok

It asserts a second version starts while one is deleting, the same version cannot start twice, and a version that is being installed or is not installed is refused. cargo fmt --check and cargo clippy --all-targets -- -D warnings are clean; the launcher suite and the rest are in the pr_ready block below.

Not done: the click itself. The launcher's GPUI window exposes only its title-bar buttons to accessibility, so computer_use has no element to click, and the coordinate route sent clicks the window ignored in both background and foreground delivery. The gate is covered by the test; pressing Remove on two rows in a row is what the reviewer's own hands will confirm.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/3720 **Author:** [@Domanffe](https://github.com/Domanffe) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/launcher-remove-queue` --- ### 📝 Commits (3) - [`3b3560d`](https://github.com/horizon-rust/horizon/commit/3b3560d71dfb1ba7a731e570f4a7e43f780473e7) Launcher: remove several versions at once - [`24c3239`](https://github.com/horizon-rust/horizon/commit/24c323960ebd56eee5574d98697262470aeb4bbb) Launcher: keep removable beside its own doc comment - [`ccb85be`](https://github.com/horizon-rust/horizon/commit/ccb85be48e3f5b4028f7b13a9fa64e58f737bf0f) Launcher: a version stops counting as installed when its removal starts ### 📊 Changes **2 files changed** (+43 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `launcher/src/backend.rs` (+3 -0) 📝 `launcher/src/main.rs` (+40 -15) </details> ### 📄 Description > 🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself. Fixes #3719. The Versions page could delete one version at a time: `App::removing` was `Option<String>`, and `remove()` returned early whenever it was `Some`, so a second row's Remove did nothing until the first delete finished. A player clearing several old builds had to wait for each one. `removing` becomes a `Vec<String>` of the versions in flight: a row's Remove starts its own thread while another delete runs, `Msg::Removed` drops only its own tag, and the "Removing…" row, the Play/Install gates and the row-keeping check ask whether *that* tag is in the list. The gate itself moved into `removable()` so the case can be tested. **Checked** in `launcher/` with `cargo test a_second_version`: ``` test tests::a_second_version_can_be_removed_while_another_deletes ... ok ``` It asserts a second version starts while one is deleting, the same version cannot start twice, and a version that is being installed or is not installed is refused. `cargo fmt --check` and `cargo clippy --all-targets -- -D warnings` are clean; the launcher suite and the rest are in the `pr_ready` block below. Not done: the click itself. The launcher's GPUI window exposes only its title-bar buttons to accessibility, so `computer_use` has no element to click, and the coordinate route sent clicks the window ignored in both background and foreground delivery. The gate is covered by the test; pressing Remove on two rows in a row is what the reviewer's own hands will confirm. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:10:42 +07:00
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#5168
No description provided.