fix(terminal): reset terminal modes on connectable session destroy (#11423)

This commit is contained in:
Utkarsh Adhran
2026-09-11 21:08:00 +02:00
committed by GitHub
parent 34531b1d32
commit 3f8fcf9f1f
@@ -68,6 +68,7 @@ export abstract class ConnectableTerminalTabComponent<P extends ConnectableTermi
super.onSessionDestroyed()
if (this.frontend) {
this.frontend.resetTerminalModes()
if (this.profile.behaviorOnSessionEnd === 'reconnect' && !this.isDisconnectedByHand) {
this.reconnect()
} else if (this.profile.behaviorOnSessionEnd === 'keep' || !this.shouldTabBeDestroyedOnSessionClose()) {