diff --git a/src/renderer/src/components/terminal-pane/terminal-input-quarantine.ts b/src/renderer/src/components/terminal-pane/terminal-input-quarantine.ts index c883dac9a9a..416227702c1 100644 --- a/src/renderer/src/components/terminal-pane/terminal-input-quarantine.ts +++ b/src/renderer/src/components/terminal-pane/terminal-input-quarantine.ts @@ -36,9 +36,9 @@ function containsLineTerminator(data: string): boolean { return LINE_TERMINATORS.some((terminator) => data.includes(terminator)) } -/** Arm only when the endpoint was actually replaced. A recovery that keeps the - * same live shell has no mangled line to suppress, and quarantining there - * would eat a legitimate command. */ +/** Arm only when the endpoint stopped accepting writes and may have been + * replaced. A recovery that always keeps the same live shell has no mangled + * line to suppress, and quarantining there would eat a legitimate command. */ export function armTerminalInputQuarantine(tabId: string, now: number = Date.now()): void { // Prune first: entries are only meaningful for QUARANTINE_MAX_MS, and a tab // closed mid-quarantine would otherwise leave one behind forever.