From ede1dd383923e84d6c5e38dffef28e5a41b7a7ce Mon Sep 17 00:00:00 2001 From: Merge Sim Date: Tue, 1 Sep 2026 11:33:18 -0700 Subject: [PATCH] fix(terminal): settle direct SSH retry on unverifiable owner --- .../pty-connection/deferred-session-reattach-connect.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/renderer/src/components/terminal-pane/pty-connection/deferred-session-reattach-connect.ts b/src/renderer/src/components/terminal-pane/pty-connection/deferred-session-reattach-connect.ts index 4614acc6147..da71fe10962 100644 --- a/src/renderer/src/components/terminal-pane/pty-connection/deferred-session-reattach-connect.ts +++ b/src/renderer/src/components/terminal-pane/pty-connection/deferred-session-reattach-connect.ts @@ -91,6 +91,7 @@ export function startDeferredSessionReattach( if (typeof gen === 'number') { void window.api.pty.clearPendingPaneSerializer(session.cacheKey, gen).catch(() => {}) } + session.settleDirectSshPaneRetryAttempt(session.directSshRetryAttempt, 'failed') return } if (!result && expiredReattachError) { @@ -153,6 +154,7 @@ export function startDeferredSessionReattach( } if (message.includes(PANE_OWNER_UNVERIFIED_ERROR)) { session.reportError(message) + session.settleDirectSshPaneRetryAttempt(session.directSshRetryAttempt, 'failed') return } warnTerminalLifecycleAnomaly('restored PTY reattach threw', {