This is interesting. I use tmux constantly, but I can’t say I have ever tried to use X-forward anything with it.
I’m not too familiar with the concepts here so after a bit of searching it was pretty easy to see how this all is wired up together. What’s particularly interesting is preexec(). I always wondered if that was possible.