I do not know if this is possible, but currently, if I ssh into a server (while running tmux locally) and then start vim on the remote server, tmux-resurrect will save the fact that I sshed into a remote server, but not the fact that I started vim there.
I'm not sure if this is out of scope, but it would be even more awesome if one could restore programs executed after ssh is executed locally, perhaps by recording keystrokes.