Files
kandev/apps/web/components/settings/pty-terminal-lifecycle.ts
T
2026-08-06 11:16:29 +01:00

10 lines
341 B
TypeScript

export type PendingPtyStart = { cancelled: boolean };
export const pendingPtyStarts = new Map<string, PendingPtyStart>();
/** Marks a detached terminal start as explicitly closed. */
export function cancelPtyTerminalStart(ownerId: string): void {
const pending = pendingPtyStarts.get(ownerId);
if (pending) pending.cancelled = true;
}