I usually open a local tmux session that connects to multiple remote tmux sessions over ssh. These lab machines run continuous regressions. When the laptop goes to sleep overnight the pipes are broken with the ssh sessions (expected). The next morning I had to restart each one of the windows manually. Is there a way for tmux to automatically figures that the machine is back online and tries to reconnect to the ssh sessions in each of these windows?
Somewhat like a vnc viewer that reconnects automatically when the machine is back online.