I am not sure if this is possible but I have a remote server running tmux and I frequently ssh into that server from a computer that is also running tmux.
The issue is that the tmux.conf filed are the same so when I try to run a command like detach with prefix-d I detach from my local tmux session when I actually want to detach from the remote one.
I do not see anyway around this other than having separate tmux.conf files but I thought I would check.