mirror of
https://github.com/stablyai/orca.git
synced 2026-10-19 16:03:26 +00:00
docs(terminal): correct the last fresh-shell over-claim on the quarantine arm
The arming doc still asserted the endpoint "was actually replaced". The signal
is a rejected write (dead socket); ensureConnected respawns only on a
daemon-gone error, so a transient drop reconnects to the same sessions. This is
the doc read before the two call sites already corrected in 3e23dddd14.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user