From c4336083503a06cf3d9be0960402ee09229e26cb Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Fri, 13 Nov 2026 09:00:22 -0800 Subject: [PATCH] fix(terminal): accept the journal owner contract in teardown lookup --- src/main/daemon/terminal-host/terminal-session-teardown.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/daemon/terminal-host/terminal-session-teardown.ts b/src/main/daemon/terminal-host/terminal-session-teardown.ts index 5c0d35ea5ab..e31df317939 100644 --- a/src/main/daemon/terminal-host/terminal-session-teardown.ts +++ b/src/main/daemon/terminal-host/terminal-session-teardown.ts @@ -2,6 +2,7 @@ import { killWithDescendantSweep } from '../../pty/process-retirement/pty-descen import { excludeShellBackgroundJobs } from '../../pty/process-retirement/pty-shell-job-preservation' import { terminateShutdownDescendants } from '../sessions/terminal-descendant-shutdown' import type { Session } from '../sessions/session' +import type { TerminalJournalSession } from '../history/journal/terminal-session-journal-contract' export type TerminalHostKillOptions = { immediate?: boolean @@ -38,7 +39,7 @@ export class TerminalSessionTeardown { } // Exact identity: the operation for this ID must be this Session's, not a successor's. - isTracked(sessionId: string, session: Session): boolean { + isTracked(sessionId: string, session: TerminalJournalSession): boolean { return this.operations.get(sessionId)?.session === session }