diff --git a/src-tauri/src/agent_partials_window.rs b/src-tauri/src/agent_partials_window.rs index 1983f9fb26..3ba73dd727 100644 --- a/src-tauri/src/agent_partials_window.rs +++ b/src-tauri/src/agent_partials_window.rs @@ -69,6 +69,10 @@ const WINDOW_BOTTOM_GAP: f64 = 190.0; pub fn create(app: &tauri::AppHandle, api_port: u16) { use tauri::{Manager, WebviewUrl, WebviewWindowBuilder}; + if crate::dock_window::VOICE_PAGES_REMOVED { + return; + } + if app.get_webview_window(PARTIALS_LABEL).is_some() { return; } diff --git a/src-tauri/src/dock_window.rs b/src-tauri/src/dock_window.rs index 39a0056647..0ca8abb868 100644 --- a/src-tauri/src/dock_window.rs +++ b/src-tauri/src/dock_window.rs @@ -31,6 +31,12 @@ #[cfg(target_os = "macos")] pub const DOCK_LABEL: &str = "dock"; +/// The pages the shell's voice windows loaded were removed (#6232). A window +/// created now would show the removed-console notice on the desktop, so the +/// windows that loaded a server page are not created. Their show, hide and +/// event calls already do nothing when the window does not exist. +pub(crate) const VOICE_PAGES_REMOVED: bool = true; + /// Window-local logical rect of the PAINTED pill content, reported by the /// React layer (`dock_set_hit_rect`) on every morph. None until the page /// hydrates — and None means CLICK-THROUGH, so a dead webview never blocks @@ -78,6 +84,9 @@ const DOCK_TOP_INSET: f64 = 0.0; /// Next port written to ~/.o8/api-port. #[cfg(target_os = "macos")] pub fn create(app: &tauri::AppHandle, api_port: u16) { + if VOICE_PAGES_REMOVED { + return; + } use tauri::Manager; if app.get_webview_window(DOCK_LABEL).is_some() { diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 84713c69de..3bfa89c7dc 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -5662,6 +5662,9 @@ fn browser_view_show(window: tauri::Window, app: tauri::AppHandle) -> Result<(), #[tauri::command] fn open_voice_settings(app: tauri::AppHandle) { use tauri::{Manager, WebviewUrl, WebviewWindowBuilder}; + if dock_window::VOICE_PAGES_REMOVED { + return; + } if let Some(win) = app.get_webview_window("voice-settings") { let _ = win.center(); let _ = win.show(); diff --git a/src-tauri/src/managed_voice_window.rs b/src-tauri/src/managed_voice_window.rs index a85651a483..1e382e1885 100644 --- a/src-tauri/src/managed_voice_window.rs +++ b/src-tauri/src/managed_voice_window.rs @@ -170,6 +170,9 @@ fn update_on_main( fn create(app: &tauri::AppHandle) -> Result, String> { use tauri::{WebviewUrl, WebviewWindowBuilder}; + if crate::dock_window::VOICE_PAGES_REMOVED { + return Err("The chat voice window was removed.".into()); + } let port = API_PORT.load(Ordering::Relaxed); if port == 0 { return Err("Voice surface is not initialized.".into()); diff --git a/src-tauri/src/point_overlay.rs b/src-tauri/src/point_overlay.rs index 13d11c9225..4067083a78 100644 --- a/src-tauri/src/point_overlay.rs +++ b/src-tauri/src/point_overlay.rs @@ -665,6 +665,10 @@ mod overlay { fn build_window(app: &tauri::AppHandle) -> bool { use tauri::{WebviewUrl, WebviewWindowBuilder}; + if crate::dock_window::VOICE_PAGES_REMOVED { + return false; + } + let base = match crate::dev_frontend::from_env() { Ok(Some(dev)) => dev.origin().to_string(), _ => format!("http://127.0.0.1:{}", API_PORT.get().copied().unwrap_or(3001)), diff --git a/src-tauri/src/spatial_ink_window.rs b/src-tauri/src/spatial_ink_window.rs index af4e790228..2e29449615 100644 --- a/src-tauri/src/spatial_ink_window.rs +++ b/src-tauri/src/spatial_ink_window.rs @@ -148,6 +148,10 @@ mod imp { pub fn create(app: &tauri::AppHandle, api_port: u16) { use tauri::{Manager, WebviewUrl, WebviewWindowBuilder}; + if crate::dock_window::VOICE_PAGES_REMOVED { + return; + } + if app.get_webview_window(SPATIAL_INK_LABEL).is_some() { return; } diff --git a/src-tauri/src/voice_host.rs b/src-tauri/src/voice_host.rs index 784ffea8be..37ed4dcd2c 100644 --- a/src-tauri/src/voice_host.rs +++ b/src-tauri/src/voice_host.rs @@ -85,6 +85,9 @@ pub(crate) fn start(app: AppHandle, port: u16, boot_id: String) { return; } app.manage(VoiceHost); + if crate::dock_window::VOICE_PAGES_REMOVED { + return; + } // Never load the packaged dashboard loader. Wait for this boot's server, // then create directly at the only permitted voice-host URL. std::thread::spawn(move || {