[PR #6475] [MERGED] Launcher: a failed account save is printed instead of dropped #6900

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

📋 Pull Request Information

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

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


📝 Commits (1)

  • ba57919 Launcher: a failed account save is printed instead of dropped

📊 Changes

2 files changed (+12 additions, -4 deletions)

View changed files

📝 launcher/src/account.rs (+9 -3)
📝 launcher/src/backend.rs (+3 -1)

📄 Description

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

Four sign-in paths save the account store with let _ = accounts.save();:
launch_for_game, launch_as, the Java player lookup in account.rs, and
download_for_owner in backend.rs. Accounts::save returns a Result, so a
failed write (a read-only data folder, a full disk, a file a scanner holds)
throws away the refreshed token or the account the player just added and the
next start asks them to sign in again, with nothing saying why.

This prints the error: backend.rs through the log closure it already takes,
the three in account.rs with eprintln! like the neighbouring failures in
backend.rs. The save still fails; only the silence changes.

What I did not observe: a failed account save in a running launcher, which needs
a held or read-only accounts file. cargo check in launcher/ compiles the
change.

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/6475 **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-account-save-error` --- ### 📝 Commits (1) - [`ba57919`](https://github.com/horizon-rust/horizon/commit/ba579191f9b8b24e59f41af514d76cf3a0ee12b8) Launcher: a failed account save is printed instead of dropped ### 📊 Changes **2 files changed** (+12 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `launcher/src/account.rs` (+9 -3) 📝 `launcher/src/backend.rs` (+3 -1) </details> ### 📄 Description > 🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself. Four sign-in paths save the account store with `let _ = accounts.save();`: `launch_for_game`, `launch_as`, the Java player lookup in `account.rs`, and `download_for_owner` in `backend.rs`. `Accounts::save` returns a `Result`, so a failed write (a read-only data folder, a full disk, a file a scanner holds) throws away the refreshed token or the account the player just added and the next start asks them to sign in again, with nothing saying why. This prints the error: `backend.rs` through the `log` closure it already takes, the three in `account.rs` with `eprintln!` like the neighbouring failures in `backend.rs`. The save still fails; only the silence changes. What I did not observe: a failed account save in a running launcher, which needs a held or read-only accounts file. `cargo check` in `launcher/` compiles the change. 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:48 +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#6900
No description provided.