mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-11-06 16:15:41 +00:00
Back from the background the app now asks the machine whether the connection still answers (Session::answers, up to 3s) and keeps its streams when it does, instead of closing the pane and replaying it every time. A dead connection is closed and dropped so the next dial starts fresh rather than waiting out the idle timeout on it. A dropped connection is retried quietly under the screen that is up; the "Reconnecting" banner comes after 3s, or at once if a keystroke was lost. iOS asks for the background task grace period on leaving, so a short lock comes back to the same connection. Android runs a foreground service (specialUse, with a "Connected to <host>" notification and a partial wake lock) while a machine or pane screen is open.