async fn wait_for_auto_recovery( client: &Client, timeout_secs: u64, ) -> Result<()>
Wait for frontend to auto-recover with a timeout. Returns Ok if recovery succeeds, Err if timeout expires.