pub fn pipe_name(data_dir_hash16: &str) -> StringExpand description
Construct the IPC endpoint path for a given data-dir hash.
Windows: a named-pipe path \\.\pipe\agentmux-{hash16}\command.
Unix: a Unix-domain-socket path under $XDG_RUNTIME_DIR/agentmux/
(fallback /tmp/agentmux-{uid}/), file name
{hash16}.sock. The directory is created with 0700 perms
and ownership = the user, so cross-user squatting in /tmp
can’t happen.
Per-data-dir scoping preserves multi-instance support per
CLAUDE.md: different portable folders / installed versions
→ different data dirs → different hashes → distinct endpoints.
Two launchers pointing at the SAME data dir collide at bind time,
which is also the single-instance signal Phase B.6 / A1.6 use.