Currently the session management happens in SshTerminalView, which is fine, but some features would benefit from a clearer separation between a terminal running over an ssh2/channel in the ssh2/session and the ssh2/session itself.
We could move the session management out, and make SshTerminalView just a shortcut for "Launch Session if needed, then terminal over the channel".
The above would make it easier to reuse the session for new connections (currently we start a new one), tunnels, snippet execution and status updates.
Currently the session management happens in SshTerminalView, which is fine, but some features would benefit from a clearer separation between a terminal running over an ssh2/channel in the ssh2/session and the ssh2/session itself.
We could move the session management out, and make SshTerminalView just a shortcut for "Launch Session if needed, then terminal over the channel".
The above would make it easier to reuse the session for new connections (currently we start a new one), tunnels, snippet execution and status updates.