diff --git a/src-tauri/src/wsl_bridge.rs b/src-tauri/src/wsl_bridge.rs index 990a4a7..1eef472 100644 --- a/src-tauri/src/wsl_bridge.rs +++ b/src-tauri/src/wsl_bridge.rs @@ -630,6 +630,9 @@ impl WslBridge { let process_mid_watchdog = self.process.clone(); let pending_since_watchdog = self.pending_since.clone(); let generation_watchdog = self.watchdog_generation.clone(); + // 5-minute stuck timeout is intentionally larger than the CLI's 2-minute per-attempt + // non-streaming fallback (added in v2.1.79). A non-streaming response will either + // succeed or fail with a Result message well within this window. const STUCK_TIMEOUT: Duration = Duration::from_secs(5 * 60); const POLL_INTERVAL: Duration = Duration::from_secs(30); thread::spawn(move || {