[PR #6600] [MERGED] Fix microphone purpose metadata for native mods on macOS #6972

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

📋 Pull Request Information

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

Base: main ← Head: feat/native-microphone-metadata


📝 Commits (2)

  • 00ee928 Declare native-mod microphone usage in the macOS game bundle
  • e3e8af5 Merge origin/main after native server export landed

📊 Changes

12 files changed (+59 additions, -12 deletions)

View changed files

📝 launcher/lang/de.json (+2 -1)
📝 launcher/lang/es.json (+2 -1)
📝 launcher/lang/fr.json (+2 -1)
📝 launcher/lang/ja.json (+2 -1)
📝 launcher/lang/pl.json (+2 -1)
📝 launcher/lang/pt-br.json (+2 -1)
📝 launcher/lang/ru.json (+2 -1)
📝 launcher/lang/tr.json (+2 -1)
📝 launcher/lang/uk.json (+2 -1)
📝 launcher/lang/zh.json (+2 -1)
📝 launcher/src/game_app.rs (+38 -1)
📝 launcher/src/shortcut.rs (+1 -1)

📄 Description

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

What and why

Native voice mods can open a microphone, but generated macOS Horizon.app bundles lack the purpose string macOS requires. Add a localized NSMicrophoneUsageDescription, escape it using the existing XML helper, and validate the generated value. All ten launcher locales include the message. Adding the key does not open a device.

Fixes #6598. Follow-up to #6462, found while testing Speak's native client and dedicated-server voice MVP.

Kind

  • bug: a crash or a breakage

Vanilla reference

Horizon-only native-mod support. Apple media-capture requirements.

Other projects' code

None.

Self-check

Actual-source bundle tests: 4 passed. Translation tests: 5 passed. Strict library/test Clippy passed through a temporary manifest excluding the GUI dependencies. Sol review (gpt-6.1-sol, high) returned none. No microphone was opened; hardware permission/listening testing remains manual.

The normal launcher gate is blocked by the existing gpui-fast/runtime_shaders feature mismatch on this Mac; its Clippy/tests are not claimed as passing. The gate's automatic old-Rust diagnosis is not the dependency error it printed.

pr_ready (tools/pr_ready.py --quick on Mac, against origin/main at 51946c9e4, 41 s)

Check Result
Scope ✅ 12 files, +59 −12
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 595 passed (40 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, with GLM 5.3 and Nemotron 3.5 Super VL through OpenCode.


🔄 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/6600 **Author:** [@wxundup](https://github.com/wxundup) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/native-microphone-metadata` --- ### 📝 Commits (2) - [`00ee928`](https://github.com/horizon-rust/horizon/commit/00ee9283065b0733e0f37bf0596bc25e2b7a3710) Declare native-mod microphone usage in the macOS game bundle - [`e3e8af5`](https://github.com/horizon-rust/horizon/commit/e3e8af585ed10189f81f80f5aae1dd6057b38cbb) Merge origin/main after native server export landed ### 📊 Changes **12 files changed** (+59 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `launcher/lang/de.json` (+2 -1) 📝 `launcher/lang/es.json` (+2 -1) 📝 `launcher/lang/fr.json` (+2 -1) 📝 `launcher/lang/ja.json` (+2 -1) 📝 `launcher/lang/pl.json` (+2 -1) 📝 `launcher/lang/pt-br.json` (+2 -1) 📝 `launcher/lang/ru.json` (+2 -1) 📝 `launcher/lang/tr.json` (+2 -1) 📝 `launcher/lang/uk.json` (+2 -1) 📝 `launcher/lang/zh.json` (+2 -1) 📝 `launcher/src/game_app.rs` (+38 -1) 📝 `launcher/src/shortcut.rs` (+1 -1) </details> ### 📄 Description > 🤖 Opened by wxundup's AI agent (T3 Code / Codex, gpt-6.1-sol), not by wxundup personally. ## What and why Native voice mods can open a microphone, but generated macOS Horizon.app bundles lack the purpose string macOS requires. Add a localized `NSMicrophoneUsageDescription`, escape it using the existing XML helper, and validate the generated value. All ten launcher locales include the message. Adding the key does not open a device. Fixes #6598. Follow-up to #6462, found while testing Speak's native client and dedicated-server voice MVP. ## Kind - [x] bug: a crash or a breakage ## Vanilla reference Horizon-only native-mod support. [Apple media-capture requirements](https://developer.apple.com/documentation/bundleresources/requesting-authorization-for-media-capture-on-macos). ## Other projects' code None. ## Self-check Actual-source bundle tests: 4 passed. Translation tests: 5 passed. Strict library/test Clippy passed through a temporary manifest excluding the GUI dependencies. Sol review (`gpt-6.1-sol`, high) returned `none`. No microphone was opened; hardware permission/listening testing remains manual. The normal launcher gate is blocked by the existing `gpui-fast/runtime_shaders` feature mismatch on this Mac; its Clippy/tests are not claimed as passing. The gate's automatic old-Rust diagnosis is not the dependency error it printed. **pr_ready** (`tools/pr_ready.py --quick` on Mac, against origin/main at 51946c9e4, 41 s) | Check | Result | | --- | --- | | Scope | ✅ 12 files, +59 −12 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 595 passed (40 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/), with GLM 5.3 and Nemotron 3.5 Super VL through OpenCode. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:30:30 +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#6972
No description provided.