Mosh was suggested in another comment, but I’ve found that et (https://eternalterminal.dev/) suits my needs better.
It does nothing to fix lag, but connection failures are handled without a hitch, same session resumes like normal on spotty train wifi and mobile data.
It does nothing to fix lag, but connection failures are handled without a hitch, same session resumes like normal on spotty train wifi and mobile data.