resolves Eugeny/tabby#7751, Eugeny/tabby#8062, Eugeny/tabby#6617 add behavior when session ends

This commit is contained in:
Clem
2023-04-23 10:50:39 +02:00
parent f2a62413da
commit b1acfe2519
8 changed files with 95 additions and 33 deletions

View File

@@ -71,7 +71,7 @@ export class TerminalTabComponent extends BaseTerminalTabComponent<LocalProfile>
height: rows,
})
this.setSession(session, true)
this.setSession(session)
this.recoveryStateChangedHint.next()
}
@@ -127,4 +127,12 @@ export class TerminalTabComponent extends BaseTerminalTabComponent<LocalProfile>
super.ngOnDestroy()
this.session?.destroy()
}
/**
* Return true if the user explicitly exit the session.
* Always return true for terminalTab as the session can only be ended by the user
*/
protected isSessionExplicitlyTerminated (): boolean {
return true
}
}