The stable refs for a freshly-opened window: its window ID (@N) and the ID of its initial (only) pane (%N). Both survive renames/reorders — drive later close/split/send/refs calls off these, not the mutable session:name target or pane indexes.
@N
%N
session:name
The tmux server's pid. Window and pane IDs restart with a new server, so a reference that outlives this server must carry it.
The stable refs for a freshly-opened window: its window ID (
@N) and the ID of its initial (only) pane (%N). Both survive renames/reorders — drive later close/split/send/refs calls off these, not the mutablesession:nametarget or pane indexes.