Ensure a detached tmux session exists. It is created only when tmux says the session is absent or
no server is running; a failed check throws instead of creating. A detached session has no client
to size it, and some tmux builds then treat its window as sizeless, so split-window fails with
"size missing". Give it an explicit initial size; tmux resizes to the real client on attach.
Returns the id (@N) of the shell window tmux opens a new session with, or undefined when the
session was already there.
Ensure a detached tmux session exists. It is created only when tmux says the session is absent or no server is running; a failed check throws instead of creating. A detached session has no client to size it, and some tmux builds then treat its window as sizeless, so
split-windowfails with "size missing". Give it an explicit initial size; tmux resizes to the real client on attach. Returns the id (@N) of the shell window tmux opens a new session with, or undefined when the session was already there.