[PR #6483] [MERGED] Launcher: a failed instances.json save is printed #6907

Closed
opened 2026-11-03 06:28:58 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6483
Author: @Domanffe
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/launcher-instances-save-error


📝 Commits (1)

  • f681e4b Launcher: a failed instances.json save is printed

📊 Changes

1 file changed (+3 additions, -1 deletions)

View changed files

📝 launcher/src/instances.rs (+3 -1)

📄 Description

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

Instances::discover forgets an instance whose folder was deleted outside the
launcher and saves the store with let _ = store.save(data). Store::save
returns a Result, so when the write fails the file keeps naming the instance
the launcher just removed; the next start lists it again, and the removal looks
like it did not stick. Same class as #6192 and #6475.

This prints the error and leaves the rest alone: the in-memory list already
dropped the entry, and a failed save still leaves the old file on disk.

What I did not observe: the failed write in a running launcher, which needs a
read-only or held instances.json. cargo check and cargo clippy -D warnings
pass in launcher/.

The pr_ready block follows as a comment.


🔄 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/6483 **Author:** [@Domanffe](https://github.com/Domanffe) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/launcher-instances-save-error` --- ### 📝 Commits (1) - [`f681e4b`](https://github.com/horizon-rust/horizon/commit/f681e4bbdcdc1fde04e12c2d7215a743c6378ee6) Launcher: a failed instances.json save is printed ### 📊 Changes **1 file changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `launcher/src/instances.rs` (+3 -1) </details> ### 📄 Description > 🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself. `Instances::discover` forgets an instance whose folder was deleted outside the launcher and saves the store with `let _ = store.save(data)`. `Store::save` returns a `Result`, so when the write fails the file keeps naming the instance the launcher just removed; the next start lists it again, and the removal looks like it did not stick. Same class as #6192 and #6475. This prints the error and leaves the rest alone: the in-memory list already dropped the entry, and a failed save still leaves the old file on disk. What I did not observe: the failed write in a running launcher, which needs a read-only or held `instances.json`. `cargo check` and `cargo clippy -D warnings` pass in `launcher/`. The `pr_ready` block follows as a comment. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:28:58 +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#6907
No description provided.