Currently we show a message, we probably should pop a controller when the user dismisses the terminal, or use a different UI than a transient to indicate this ended.
Additionally:
When tmux disconnects, we probably should ping the server and see if tmux closed the session, or if it was a control-d:
Currently the channel is closed, and we get this report directly on detach, that is independent of the NWConnection shutdown.
The NWConnection shutdown is linked to the session, which is what we use to detect a reattaching of the session.
Currently we show a message, we probably should pop a controller when the user dismisses the terminal, or use a different UI than a transient to indicate this ended.
Additionally:
The NWConnection shutdown is linked to the session, which is what we use to detect a reattaching of the session.