Files
t3code/packages/ssh
Josh Gratton 61fa07149c Reuse a shared HTTP readiness probe across ssh + desktop
The desktop backend manager and the SSH tunnel each had their own HTTP
readiness probe. Extract the richer SSH implementation into
@t3tools/shared/httpReadiness as a generic waitForHttpReady parameterized
by a makeError callback, so each caller keeps its own tagged error:
- ssh/tunnel: thin wrapper that still fails with SshReadinessError (tag,
  messages, and cause shapes unchanged).
- DesktopBackendManager: delegates to the shared probe, still failing with
  BackendTimeoutError; its external signature is unchanged. It picks up the
  per-probe timeout + bounded-retry behavior the SSH probe already had.

Verified: shared + ssh + desktop typecheck clean; full ssh suite (25) and
desktop backend tests (14) pass; SshReadinessError is unchanged.
2026-06-22 14:19:27 -04:00
..