Your comments

That makes perfect sense, I hadn’t realized that. There’s also autossh (unsure about the license, but I found this) and Eternal Terminal, under the Apache license. They might be even better than mosh due to their support for keeping tunnels alive. I don’t yet have any personal experience with either, though. I just found out about them, shortly after posting the above suggestion.

Supporting mosh, which has already been requested hereis the best way to do this as far as I know.

I personally am most immediately interested in a full native-looking Ayu Mirage theme, but I think this feature could be generic based on background color and other particular theme attributes.