From 4dbad7ab244b0c0bc14aa860d365a6ffc7979aab Mon Sep 17 00:00:00 2001 From: Owen Date: Mon, 8 Jun 2026 15:07:02 -0700 Subject: [PATCH] Close the tab when exiting --- src/app/ssh/SshClient.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/ssh/SshClient.tsx b/src/app/ssh/SshClient.tsx index 932b6336b..bb20ba964 100644 --- a/src/app/ssh/SshClient.tsx +++ b/src/app/ssh/SshClient.tsx @@ -334,6 +334,10 @@ export default function SshClient({ setConnecting(false); if (authConfirmed) { setConnected(false); + if (evt.wasClean || evt.code === 1000) { + window.close(); + return; + } xtermRef.current?.writeln( `\r\n\x1b[33m${t("sshConnectionClosedCode", { code: evt.code })}\x1b[0m\r\n` );