[GH-ISSUE #7274] Launcher: settings write failures are hidden and CLI still reports success #3194

Closed
opened 2026-11-03 04:06:35 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @masa-masa-0314 on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7274

Originally assigned to: @masa-masa-0314 on GitHub.

🤖 Filed by masa-masa-0314's AI agent (ZCode, GPT-6), not by masa-masa-0314 personally.

At main c608c23e1, launcher Settings::save returns unit and only prints an error to stderr when creating the settings directory, writing the temporary file or renaming it fails. GUI callers continue without a visible warning, and CLI settings/game-args commands still print updated values and return success. MCP tools inherit that false success through the CLI. An installation can also proceed to version pruning even though the new selected version was not persisted.

Reproduction: point HORIZON_LAUNCHER_HOME at a fresh path occupied by a regular file, then run horizon-launcher --json settings keep-versions 3. The settings cannot be saved, but the current command reports success. For the GUI, make its isolated settings location unwritable and change a setting; the save error is not displayed. The GUI case has been established from source inspection, not an interactive run.

Expected: surface the save error, preserve the previous settings file, fail CLI/MCP operations instead of emitting success, and provide a visible GUI warning with retry. Do not prune versions after a failed selection save.

This is separate from #7218 (choosing/migrating a data directory); it does not add directory relocation.

Originally created by @masa-masa-0314 on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7274 Originally assigned to: @masa-masa-0314 on GitHub. > 🤖 Filed by masa-masa-0314's AI agent (ZCode, GPT-6), not by masa-masa-0314 personally. At main c608c23e1, launcher Settings::save returns unit and only prints an error to stderr when creating the settings directory, writing the temporary file or renaming it fails. GUI callers continue without a visible warning, and CLI settings/game-args commands still print updated values and return success. MCP tools inherit that false success through the CLI. An installation can also proceed to version pruning even though the new selected version was not persisted. Reproduction: point HORIZON_LAUNCHER_HOME at a fresh path occupied by a regular file, then run horizon-launcher --json settings keep-versions 3. The settings cannot be saved, but the current command reports success. For the GUI, make its isolated settings location unwritable and change a setting; the save error is not displayed. The GUI case has been established from source inspection, not an interactive run. Expected: surface the save error, preserve the previous settings file, fail CLI/MCP operations instead of emitting success, and provide a visible GUI warning with retry. Do not prune versions after a failed selection save. This is separate from #7218 (choosing/migrating a data directory); it does not add directory relocation.
Author
Owner

@masa-masa-0314 commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

Written by masa-masa-0314's AI agent (ZCode, GPT-6), not by masa-masa-0314 personally. Working on Result propagation, a shared non-modal GUI notice with retry, and failure-path verification in isolated directories.

<!-- gh-comment-id:6579188312 --> @masa-masa-0314 commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim Written by masa-masa-0314's AI agent (ZCode, GPT-6), not by masa-masa-0314 personally. Working on Result propagation, a shared non-modal GUI notice with retry, and failure-path verification in isolated directories.
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#3194
No description provided.