[PR #6638] [MERGED] Add native build log details, copy, and file actions to the launcher #7005

Closed
opened 2026-11-03 06:31:49 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6638
Author: @wxundup
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: feat/native-build-log-details


📝 Commits (2)

📊 Changes

13 files changed (+543 additions, -13 deletions)

View changed files

📝 docs/native-mods.md (+14 -0)
📝 launcher/lang/de.json (+10 -1)
📝 launcher/lang/es.json (+10 -1)
📝 launcher/lang/fr.json (+10 -1)
📝 launcher/lang/ja.json (+10 -1)
📝 launcher/lang/pl.json (+10 -1)
📝 launcher/lang/pt-br.json (+10 -1)
📝 launcher/lang/ru.json (+10 -1)
📝 launcher/lang/tr.json (+10 -1)
📝 launcher/lang/uk.json (+10 -1)
📝 launcher/lang/zh.json (+10 -1)
📝 launcher/src/main.rs (+39 -3)
➕ launcher/src/native_log_page.rs (+390 -0)

📄 Description

🤖 Opened by wxundup's AI agent (T3 Code / Codex, gpt-6.1-sol), not by wxundup personally.

What and why

After a native build succeeds or fails, Build log at the top right opens its detailed output. Copy log copies the complete snapshot; Open full log and Show in folder go directly to the file. Refresh rereads it, completion refreshes an open panel, and the latest log remains accessible after restarting the launcher.

The preview shows the last 2,000 lines with an explicit truncation notice while retaining the full copyable text. Navigation and actions wrap at narrow widths, and the log scrolls inside the window. A refresh queued during I/O supersedes the old result. Missing files and early log-reset errors are shown explicitly. All nine new labels are translated in ten locales. Nothing is uploaded.

Fixes #6622. Built on the logging foundation in #6637. The viewer commit is separate for review; once the foundation lands, this PR's diff contains only that commit (13 files, +543/-13, including all translations and tests).

Kind

  • feature: something new for players

Vanilla reference

Horizon-only launcher diagnostics; uses the existing Night tokens, controls, clipboard helper, and system file actions.

Other projects' code

None copied. GPUI Fast 0.1.12's platform feature metadata was inspected for local verification.

Self-check

Using the production manifest, with no dependency or lockfile changes:

  • cargo test --manifest-path launcher/Cargo.toml --features gpui_platform/runtime_shaders --all-targets --locked --offline: 484 passed, 6 existing ignored.
  • Matching cargo clippy ... -- -D warnings and launcher build: pass.
  • Model tests exercise full diagnostic retention versus the bounded preview, missing files, and refresh requests arriving during an earlier read.
  • Sol review (gpt-6.1-sol, high): none.

Tests/build used Rust 1.99.1; Clippy used installed stable 1.98.1. Runtime shaders avoid this Mac's missing Metal compiler. The normal checker's existing fallback requests gpui/runtime_shaders, which is unavailable; the supported gpui_platform/runtime_shaders commands above pass. Its automatic old-Rust diagnosis does not describe that printed dependency error. All launches and tests used isolated HORIZON/XDG homes, audio off, and self-update off.

Screenshots

A scratch launcher started with a marked diagnostic fixture, but macOS refused scoped window capture (could not create image from window) and System Events could not access the window. No screenshot or manual clipboard/file-opening pass is claimed. The scratch process was closed.

pr_ready (tools/pr_ready.py --quick on Mac, against origin/main at db34ce484, 40 s)

Check Result
Scope ⚠️ 15 files, +708 −84; 777 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 596 passed (38 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 ✅ (1 s)
Rust ⚠️ 1.98.1 is older than CI's stable (1.99): clippy may flag lints CI doesn't, update with rustup update
launcher clippy ❌ failed; likely the old Rust above
launcher tests ❌ failed
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 Codex and OpenCode (GLM 5.3).


🔄 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/6638 **Author:** [@wxundup](https://github.com/wxundup) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/native-build-log-details` --- ### 📝 Commits (2) - [`970edcd`](https://github.com/horizon-rust/horizon/commit/970edcd28be894f23f8632578a7f3e923dd0f47f) Expose latest native build diagnostics in the launcher - [`03379ce`](https://github.com/horizon-rust/horizon/commit/03379ce30f53e740067b6d1e2fd445e78d04d159) Merge main into #6638 ### 📊 Changes **13 files changed** (+543 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `docs/native-mods.md` (+14 -0) 📝 `launcher/lang/de.json` (+10 -1) 📝 `launcher/lang/es.json` (+10 -1) 📝 `launcher/lang/fr.json` (+10 -1) 📝 `launcher/lang/ja.json` (+10 -1) 📝 `launcher/lang/pl.json` (+10 -1) 📝 `launcher/lang/pt-br.json` (+10 -1) 📝 `launcher/lang/ru.json` (+10 -1) 📝 `launcher/lang/tr.json` (+10 -1) 📝 `launcher/lang/uk.json` (+10 -1) 📝 `launcher/lang/zh.json` (+10 -1) 📝 `launcher/src/main.rs` (+39 -3) ➕ `launcher/src/native_log_page.rs` (+390 -0) </details> ### 📄 Description > 🤖 Opened by wxundup's AI agent (T3 Code / Codex, gpt-6.1-sol), not by wxundup personally. ## What and why After a native build succeeds or fails, **Build log** at the top right opens its detailed output. **Copy log** copies the complete snapshot; **Open full log** and **Show in folder** go directly to the file. Refresh rereads it, completion refreshes an open panel, and the latest log remains accessible after restarting the launcher. The preview shows the last 2,000 lines with an explicit truncation notice while retaining the full copyable text. Navigation and actions wrap at narrow widths, and the log scrolls inside the window. A refresh queued during I/O supersedes the old result. Missing files and early log-reset errors are shown explicitly. All nine new labels are translated in ten locales. Nothing is uploaded. Fixes #6622. Built on the logging foundation in #6637. The [viewer commit](https://github.com/wxundup/horizon/commit/970edcd28) is separate for review; once the foundation lands, this PR's diff contains only that commit (13 files, +543/-13, including all translations and tests). ## Kind - [x] feature: something new for players ## Vanilla reference Horizon-only launcher diagnostics; uses the existing Night tokens, controls, clipboard helper, and system file actions. ## Other projects' code None copied. GPUI Fast 0.1.12's platform feature metadata was inspected for local verification. ## Self-check Using the production manifest, with no dependency or lockfile changes: - `cargo test --manifest-path launcher/Cargo.toml --features gpui_platform/runtime_shaders --all-targets --locked --offline`: **484 passed, 6 existing ignored**. - Matching `cargo clippy ... -- -D warnings` and launcher build: **pass**. - Model tests exercise full diagnostic retention versus the bounded preview, missing files, and refresh requests arriving during an earlier read. - Sol review (`gpt-6.1-sol`, high): **none**. Tests/build used Rust 1.99.1; Clippy used installed stable 1.98.1. Runtime shaders avoid this Mac's missing Metal compiler. The normal checker's existing fallback requests `gpui/runtime_shaders`, which is unavailable; the supported `gpui_platform/runtime_shaders` commands above pass. Its automatic old-Rust diagnosis does not describe that printed dependency error. All launches and tests used isolated HORIZON/XDG homes, audio off, and self-update off. ## Screenshots A scratch launcher started with a marked diagnostic fixture, but macOS refused scoped window capture (`could not create image from window`) and System Events could not access the window. No screenshot or manual clipboard/file-opening pass is claimed. The scratch process was closed. **pr_ready** (`tools/pr_ready.py --quick` on Mac, against origin/main at db34ce484, 40 s) | Check | Result | | --- | --- | | Scope | ⚠️ 15 files, +708 −84; 777 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 596 passed (38 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 | ✅ (1 s) | | Rust | ⚠️ 1.98.1 is older than CI's stable (1.99): clippy may flag lints CI doesn't, update with `rustup update` | | launcher clippy | ❌ failed; likely the old Rust above | | launcher tests | ❌ failed | | 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 [Codex](https://openai.com/codex/) and OpenCode (GLM 5.3). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:31:49 +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#7005
No description provided.