fix(ssh): keep reconnecting long-lived links
Direct SSH links stopped reconnecting after the new default recovery deadline expired. ReconnectPolicy documented maximum_duration as an opt-in bound, but the default was set to 120 seconds, so a long-lived cmux ssh session could exit with remote connection did not become ready within ... after a transient disconnect.
This restores an unbounded default for interactive links. Bounded one-shot callers can still set maximum_duration explicitly. The regression test now asserts the default recovery window is unbounded.
Validation: git diff --check; hosted cmux-tui verification pending.
— unregistered
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.
Summary by cubic
Fixes direct SSH links so they keep reconnecting after a transient disconnect. The default recovery deadline of 120 seconds caused long-lived cmux ssh sessions to exit with remote connection did not become ready within ...; the default is now unbounded, and one-shot callers can still set maximum_duration explicitly. Test fixtures were updated to match the new default.
Summary by CodeRabbit
- Bug Fixes
- Automatic connection recovery no longer stops after 120 seconds by default. Recovery can continue without a time limit unless a deadline is configured. You can still set a recovery deadline when needed, and existing limits on the number of reconnection attempts remain in effect.