From 0bc501296848661dca18ccca86de0cfcd7c64d79 Mon Sep 17 00:00:00 2001 From: Christophe Henner Date: Wed, 7 Oct 2026 10:54:59 +0200 Subject: [PATCH] fix(web): remove localhost hints from loading shell Problem: Public SP42 briefly showed local-dev instructions during Wasm startup. Decision: Keep a generic loading message and guard it with a regression test. Rationale: Trunk ships shared index.html to online builds; dev-only guidance has no place in that shell. Validation: Regression test failed before the change and passes afterward. --- index.html | 7 +------ xtask/src/main.rs | 9 +++++++++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 80cbffc3..cb425f5f 100644 --- a/index.html +++ b/index.html @@ -73,12 +73,7 @@

SP42

-

Booting patrol workbench…

-

- The browser shell mounts here once the Rust/Wasm bundle is ready. Run the - localhost server on 127.0.0.1:8788 for auth, coordination, - and debug surfaces. -

+

Loading SP42…

diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 5b339f3f..653f5072 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -1125,4 +1125,13 @@ mod tests { assert_eq!(args, ["tauri", "build"]); } + + #[test] + fn web_loading_shell_does_not_expose_local_server_instructions() { + let html = include_str!("../../index.html"); + + assert!(html.contains("Loading SP42…")); + assert!(!html.contains("127.0.0.1:8788")); + assert!(!html.contains("localhost server")); + } }