Skip to content

tmuxNewWindow parses -t but never uses it (target session silently ignored) #84

Description

@arzafran

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnuclear-reviewFrom the 2026-07-09 whole-codebase nuclear reviewremote-daemonSSH-remote daemon (programad-remote)

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions