diff --git a/terminus-terminal/src/tmux.ts b/terminus-terminal/src/tmux.ts index dc1eaaa4..3a155db1 100644 --- a/terminus-terminal/src/tmux.ts +++ b/terminus-terminal/src/tmux.ts @@ -166,7 +166,9 @@ export class TMux { } async terminate (id: string): Promise { - this.process.command(`kill-session -t ${id}`) + this.process.command(`kill-session -t ${id}`).catch(() => { + console.debug('Session already killed') + }) } } @@ -203,7 +205,7 @@ export class TMuxPersistenceProvider extends SessionPersistenceProvider { }) return { command: 'tmux', - args: ['-L', 'terminus', 'attach-session', '-d', '-t', recoveryId], + args: ['-L', 'terminus', 'attach-session', '-d', '-t', recoveryId, ';', 'refresh-client'], recoveredTruePID$: truePID$.asObservable(), recoveryId, }