[PR #576] [MERGED] Package registry reports and show recoverable server resource errors #2652

Closed
opened 2026-11-02 15:57:58 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/576
Author: @Online5277
Created: 10/16/2026
Status: ✅ Merged
Merged: 10/16/2026
Merged by: @ludovic111

Base: main ← Head: fix/prepared-registry-reports


📝 Commits (1)

  • d652b25 Package registry reports and recover from incomplete server resources

📊 Changes

3 files changed (+97 additions, -20 deletions)

View changed files

📝 crates/horizon-client/src/game/remote.rs (+15 -2)
📝 crates/horizon-client/src/title.rs (+1 -1)
📝 crates/horizon-prepare/src/lib.rs (+81 -17)

📄 Description

Joining a server could terminate the client when registries.json was only available in a preparation scratch directory. Preparation now copies registries.json and commands.json beside the resources and regenerates the reports when either is absent, even if items.json already exists.

Client-side connection setup failures now open the existing error screen with a Back button. Missing or invalid registry reports give instructions to repair resources in the launcher or rerun horizon-prepare.

Fixes #573.

Validation: 21 preparer tests, including report installation and repair detection; 26 existing title-screen tests; client and preparer all-target Clippy; formatting and diff checks.

Full Java preparation, joining a live server, and the in-game error screen remain manual checks, so this PR is a draft. Test missing reports using an isolated resources copy without a development datagen fallback, then prepare resources again and confirm joining succeeds.


🔄 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/576 **Author:** [@Online5277](https://github.com/Online5277) **Created:** 10/16/2026 **Status:** ✅ Merged **Merged:** 10/16/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/prepared-registry-reports` --- ### 📝 Commits (1) - [`d652b25`](https://github.com/horizon-rust/horizon/commit/d652b25ead328d505596e585091276181a8b246e) Package registry reports and recover from incomplete server resources ### 📊 Changes **3 files changed** (+97 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/remote.rs` (+15 -2) 📝 `crates/horizon-client/src/title.rs` (+1 -1) 📝 `crates/horizon-prepare/src/lib.rs` (+81 -17) </details> ### 📄 Description Joining a server could terminate the client when `registries.json` was only available in a preparation scratch directory. Preparation now copies `registries.json` and `commands.json` beside the resources and regenerates the reports when either is absent, even if `items.json` already exists. Client-side connection setup failures now open the existing error screen with a Back button. Missing or invalid registry reports give instructions to repair resources in the launcher or rerun `horizon-prepare`. Fixes #573. Validation: 21 preparer tests, including report installation and repair detection; 26 existing title-screen tests; client and preparer all-target Clippy; formatting and diff checks. Full Java preparation, joining a live server, and the in-game error screen remain manual checks, so this PR is a draft. Test missing reports using an isolated resources copy without a development datagen fallback, then prepare resources again and confirm joining succeeds. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:57: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#2652
No description provided.