mirror of
https://github.com/stablyai/orca.git
synced 2026-11-05 19:47:27 +00:00
* refactor(pty): delete the SSH PTY provider and its registry slot Nothing in production registers an SSH PTY provider, so the registry's SSH map was always empty: every SSH lookup answered undefined or threw the 'No PTY provider for connection' error. Delete the provider stack, its consumer-session and source-recovery contracts, the registry maps and the getSshProvider dependency, keeping each caller's existing result for an absent provider. The registry now dispatches only 'local'; any other host throws PtyHostNotDispatchableError, which keeps the renderer-matched message for SSH ids and is never read as a gone or exited PTY. * test(pty): keep the no-provider SSH routing cases in local-only form * test: reword a comment naming the deleted SSH PTY provider * test: drop an import the rebase left unused --------- Co-authored-by: m4air <m4air@Mac.localdomain>
6 lines
402 B
TypeScript
6 lines
402 B
TypeScript
// Why: shortening an owner grace is only safe against an owner the relay has
|
|
// evidence is gone, and that evidence exists only where the transport ended on the peer's side. A
|
|
// teardown the relay itself initiated — backpressure, a decode fault — proves nothing about liveness,
|
|
// so 'local' is the default and never shortens anything.
|
|
export type PtyConsumerCloseCause = 'peer-closed' | 'local'
|