fix(terminal): settle direct SSH retry on unverifiable owner

This commit is contained in:
Merge Sim
2026-09-01 11:33:18 -07:00
parent a1912aeb5f
commit ede1dd3839
@@ -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', {