From 2d3fb53fbe98dbc7174779f48529880d2b6f41cb Mon Sep 17 00:00:00 2001 From: LukeGus Date: Thu, 11 Sep 2025 01:33:39 -0500 Subject: [PATCH] Fix terrminal not closing afer 3 tries --- src/ui/Desktop/Apps/Terminal/Terminal.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ui/Desktop/Apps/Terminal/Terminal.tsx b/src/ui/Desktop/Apps/Terminal/Terminal.tsx index 5a448760..323a3c7b 100644 --- a/src/ui/Desktop/Apps/Terminal/Terminal.tsx +++ b/src/ui/Desktop/Apps/Terminal/Terminal.tsx @@ -151,6 +151,10 @@ export const Terminal = forwardRef(function SSHTerminal( // Check if we've already reached max attempts if (reconnectAttempts.current >= maxReconnectAttempts) { toast.error(t('terminal.maxReconnectAttemptsReached')); + // Close the terminal tab when max attempts reached + if (onClose) { + onClose(); + } return; }