From bcbd712a10b1cbf717c4691c2e342e02e7425da5 Mon Sep 17 00:00:00 2001 From: GeekMr <140129782+WilliamWang1721@users.noreply.github.com> Date: Thu, 24 Sep 2026 22:28:54 +0800 Subject: [PATCH] fix: dismiss SSH copy popup before probe shutdown --- nebula_app/src/gpui_shell/ssh_settings/library/tests.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nebula_app/src/gpui_shell/ssh_settings/library/tests.rs b/nebula_app/src/gpui_shell/ssh_settings/library/tests.rs index e8fc255..e55b4ff 100644 --- a/nebula_app/src/gpui_shell/ssh_settings/library/tests.rs +++ b/nebula_app/src/gpui_shell/ssh_settings/library/tests.rs @@ -196,7 +196,13 @@ fn native_ssh_copy_context_menu_preview() { *result.lock().unwrap() = Some(opened); drop(pane); - let _ = cx.update_window(handle.into(), |_, window, _| window.remove_window()); + let _ = cx.update_window(handle.into(), |_, window, cx| { + for _ in 0..2 { + window.dispatch_keystroke(gpui::Keystroke::parse("escape").unwrap(), cx); + let _ = window.draw(cx); + } + window.remove_window(); + }); cx.update(|cx| cx.quit()); }) .detach();