tmuxNewWindow in daemon/remote/cmd/programad-remote/tmux_compat.go is a copy-paste near-duplicate of tmuxNewSession. The copy parses the -t flag but never reads it, so a caller specifying a target session gets the window created against the default instead.
Fix: honor the parsed target, and collapse the two functions' shared body while there.
From the 2026-07-09 nuclear review (10 module reviewers + Codex cross-model pass, disprove-first). Line refs are against the reductive-audit branch (PR #81).
tmuxNewWindowindaemon/remote/cmd/programad-remote/tmux_compat.gois a copy-paste near-duplicate oftmuxNewSession. The copy parses the-tflag but never reads it, so a caller specifying a target session gets the window created against the default instead.Fix: honor the parsed target, and collapse the two functions' shared body while there.
From the 2026-07-09 nuclear review (10 module reviewers + Codex cross-model pass, disprove-first). Line refs are against the
reductive-auditbranch (PR #81).