[PR #2753] [MERGED] title: a world open in another instance shows the access failure toast instead of crashing #4586

Closed
opened 2026-11-03 04:18:16 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2753
Author: @iLostName
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @levzzz5154

Base: main ← Head: world-access-failure-toast


📝 Commits (2)

  • ee9d8a6 title: a world open in another instance shows the access failure toast instead of crashing
  • 833b938 Merge main into world-access-failure-toast

📊 Changes

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

View changed files

📝 crates/horizon-client/src/title.rs (+27 -9)
📝 crates/horizon-client/src/title/tests.rs (+31 -3)

📄 Description

What and why

Playing a world another instance had open crashed the game. Play now tries the world's lock first; if it can't be taken, the "Failed to access world" toast names the folder and the list stays.

Vanilla reference

WorldOpenFlows.createWorldAccess → SystemToast.onWorldAccessFailure. Vanilla also greys such a world out in the list (LevelSummary.isLocked); not part of this.

Self-check

pr_ready (tools/pr_ready.py --quick on PC-Lost, against origin/main at 12e0094f1, 3 min 46 s)

Check Result
Scope ✅ 9 files, +111 −14
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ❌ 331 run, FAILED (failures=2, errors=8, skipped=11) (49 s)
rustfmt ✅ (9 s)
clippy ❌ failed (28 s)
tests: horizon-client ❌ 1152 passed, 2 failed (1 min 55 s)
doc tests ✅ 0 passed (22 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Run on Windows: save::session_lock_is_exclusive, crash::stacks_start_at_the_panicking_frame and the Python tests fail there and are unrelated; clippy stops at the duplicate minecraft:rabbit arm in entity_nbt.rs:502, already on main (#2719 fixes it). Scope counts untracked local files.


🔄 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/2753 **Author:** [@iLostName](https://github.com/iLostName) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `world-access-failure-toast` --- ### 📝 Commits (2) - [`ee9d8a6`](https://github.com/horizon-rust/horizon/commit/ee9d8a656fe48e547532762d320bd731f8053198) title: a world open in another instance shows the access failure toast instead of crashing - [`833b938`](https://github.com/horizon-rust/horizon/commit/833b9385ee5193baa03f2f6bcb748bf36d9e8511) Merge main into world-access-failure-toast ### 📊 Changes **2 files changed** (+58 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/title.rs` (+27 -9) 📝 `crates/horizon-client/src/title/tests.rs` (+31 -3) </details> ### 📄 Description ## What and why Playing a world another instance had open crashed the game. Play now tries the world's lock first; if it can't be taken, the "Failed to access world" toast names the folder and the list stays. ## Vanilla reference `WorldOpenFlows.createWorldAccess` → `SystemToast.onWorldAccessFailure`. Vanilla also greys such a world out in the list (`LevelSummary.isLocked`); not part of this. ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on PC-Lost, against origin/main at 12e0094f1, 3 min 46 s) | Check | Result | | --- | --- | | Scope | ✅ 9 files, +111 −14 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ❌ 331 run, FAILED (failures=2, errors=8, skipped=11) (49 s) | | rustfmt | ✅ (9 s) | | clippy | ❌ failed (28 s) | | tests: horizon-client | ❌ 1152 passed, 2 failed (1 min 55 s) | | doc tests | ✅ 0 passed (22 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | Run on Windows: `save::session_lock_is_exclusive`, `crash::stacks_start_at_the_panicking_frame` and the Python tests fail there and are unrelated; clippy stops at the duplicate `minecraft:rabbit` arm in `entity_nbt.rs:502`, already on main (#2719 fixes it). Scope counts untracked local files. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:18:16 +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#4586
No description provided.