From 0ccf3e110bb5591695966075b8a6652ce1df8374 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Tue, 27 Oct 2026 03:44:53 +0100 Subject: [PATCH] launcher: live game console with search, follow, copy and share log Home's Console shows the game's output of this run as it comes, with a search, Follow, Copy and Open logs folder. Share log uploads it to mclo.gs only after the player confirms, with the home folder, user name and account names taken out first, and can delete the paste again. CLI: share-log and unshare-log (MCP tools, the second needs confirm). Co-Authored-By: Claude Opus 5.5 --- docs/launcher-commands.md | 20 +++ launcher/README.md | 7 + launcher/src/cli.rs | 45 +++++ launcher/src/cli_tools.rs | 2 + launcher/src/console_page.rs | 320 +++++++++++++++++++++++++++++++++ launcher/src/game_log.rs | 161 +++++++++++++++++ launcher/src/game_log/tests.rs | 114 ++++++++++++ launcher/src/lib.rs | 1 + launcher/src/main.rs | 6 + launcher/src/servers_page.rs | 7 +- 10 files changed, 681 insertions(+), 2 deletions(-) create mode 100644 launcher/src/console_page.rs create mode 100644 launcher/src/game_log.rs create mode 100644 launcher/src/game_log/tests.rs diff --git a/docs/launcher-commands.md b/docs/launcher-commands.md index 63f168e38..a5c7b17fb 100644 --- a/docs/launcher-commands.md +++ b/docs/launcher-commands.md @@ -153,6 +153,26 @@ Show or set the extra arguments the game starts with (for example --server-threa MCP: `game_args`. +## `horizon-launcher share-log` + +Upload an instance's latest.log to mclo.gs (a paste service for Minecraft logs) and print its link, for a bug report: only when the player asks. The home folder, the user name and the account names are taken out first; the link expires after 90 days unread. + + horizon-launcher share-log + +- `--instance`: The instance (default: the selected one) + +MCP: `share_log`, only when the player asks. + +## `horizon-launcher unshare-log` + +Delete a log shared with share-log: the ":" it printed. + + horizon-launcher unshare-log + +- `SHARED` + +MCP: `unshare_log`, needs `confirm: true`. + ## `horizon-launcher logs` Print the end of the game's log (logs/latest.log in the game folder), or its newest crash report. diff --git a/launcher/README.md b/launcher/README.md index 7ffcc210a..6077e6a80 100644 --- a/launcher/README.md +++ b/launcher/README.md @@ -100,6 +100,13 @@ The opening, then Play ([clip](docs/opening.webm)): pack into the selected instance. A data pack is pointed at the world rows, and the Packs section and the world rows keep taking their own drops. A note in the corner says what happened. `horizon-launcher instance import `. +- **Console**: Home's Console shows the game's output of this run as it comes: a search (every + word, any case), Follow to keep the newest line in view, Copy, and Open logs folder. Warnings + and errors stand out. **Share log…** uploads the log to [mclo.gs](https://mclo.gs), a paste + service for Minecraft logs, only after the player confirms; the home folder, the user name and + the account names are taken out first (`horizon_launcher::game_log`), and **Delete it** removes + the paste. `horizon-launcher share-log [--instance]` and `unshare-log `; + `HORIZON_LAUNCHER_PASTE_URL` points it at a test server. - **Worlds**: Home lists the selected instance's worlds (picture, mode, version, last played, size). **Back up** zips one into the instance's `backups/` as the game's Make Backup does (`_