[PR #3112] [CLOSED] Launcher: provide installed-mod inventory for sandboxed Mod Menu #4810

Closed
opened 2026-11-03 05:08:07 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3112
Author: @levzzz5154
Created: 10/28/2026
Status: ❌ Closed

Base: main ← Head: feat/mod-menu-inventory


📝 Commits (1)

  • 7efa263 Provide an opt-in inventory feed for sandboxed Mod Menu

📊 Changes

7 files changed (+260 additions, -2 deletions)

View changed files

➕ docs/mod-menu-inventory.md (+31 -0)
📝 launcher/src/backend.rs (+1 -0)
📝 launcher/src/browser/installed.rs (+3 -1)
📝 launcher/src/browser/java.rs (+3 -1)
📝 launcher/src/instances.rs (+1 -0)
📝 launcher/src/lib.rs (+1 -0)
➕ launcher/src/mod_inventory.rs (+220 -0)

📄 Description

🤖 Opened by levzzz5154's AI agent (OpenAI Codex), not by levzzz5154 themselves.

Sandboxed mods cannot enumerate other installed packages. This adds a schema-1 inventory feed for Mod Menu, written only when that mod is installed. The feed lists packaged/folder mods and native bundle metadata, versions and configured enabled states for the selected instance.

The launcher refreshes it after install/remove/toggle changes and before instance launch. Mod Menu reads its own sandbox storage; it receives no filesystem access. The scan also reports unreadable packages, and its output excludes account data and absolute paths. External --dev-mod paths and runtime failure status are outside this feed.

Vanilla reference: none; launcher-only integration with no gameplay changes. The included inventory test covers manual packages, native metadata, disabled/broken mods, opt-in writes and path privacy. Mod Menu's own repository has tests against the actual Wasm sandbox.

pr_ready (tools/pr_ready.py --quick --base upstream/main on cachyos-x8664, against upstream/main at b6c936f82, 2 min 18 s)

Check Result
Scope ✅ 7 files, +260 −2
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 398 passed (25 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ✅
launcher clippy ✅ (43 s)
launcher tests ✅ 205 passed (1 min 11 s)
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)

🤖 Generated with OpenAI Codex.


🔄 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/3112 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/28/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/mod-menu-inventory` --- ### 📝 Commits (1) - [`7efa263`](https://github.com/horizon-rust/horizon/commit/7efa2636b848ab0c00e4a838d4fbce2a9684d1fb) Provide an opt-in inventory feed for sandboxed Mod Menu ### 📊 Changes **7 files changed** (+260 additions, -2 deletions) <details> <summary>View changed files</summary> ➕ `docs/mod-menu-inventory.md` (+31 -0) 📝 `launcher/src/backend.rs` (+1 -0) 📝 `launcher/src/browser/installed.rs` (+3 -1) 📝 `launcher/src/browser/java.rs` (+3 -1) 📝 `launcher/src/instances.rs` (+1 -0) 📝 `launcher/src/lib.rs` (+1 -0) ➕ `launcher/src/mod_inventory.rs` (+220 -0) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (OpenAI Codex), not by levzzz5154 themselves. Sandboxed mods cannot enumerate other installed packages. This adds a schema-1 inventory feed for [Mod Menu](https://github.com/levzzz5154/horizon-mod-menu), written only when that mod is installed. The feed lists packaged/folder mods and native bundle metadata, versions and configured enabled states for the selected instance. The launcher refreshes it after install/remove/toggle changes and before instance launch. Mod Menu reads its own sandbox storage; it receives no filesystem access. The scan also reports unreadable packages, and its output excludes account data and absolute paths. External `--dev-mod` paths and runtime failure status are outside this feed. Vanilla reference: none; launcher-only integration with no gameplay changes. The included inventory test covers manual packages, native metadata, disabled/broken mods, opt-in writes and path privacy. Mod Menu's own repository has tests against the actual Wasm sandbox. **pr_ready** (`tools/pr_ready.py --quick --base upstream/main` on cachyos-x8664, against upstream/main at b6c936f82, 2 min 18 s) | Check | Result | | --- | --- | | Scope | ✅ 7 files, +260 −2 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 398 passed (25 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ✅ | | launcher clippy | ✅ (43 s) | | launcher tests | ✅ 205 passed (1 min 11 s) | | 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) | 🤖 Generated with [OpenAI Codex](https://openai.com/codex/). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:08:07 +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#4810
No description provided.