oliver-zehentleitner / maity

runner (R5 S199, low): tmux targets must match a session name exactly (-t =name)

Sign in to report

tsk-r8ra9wwn7rqw Open

Security round 5, blue area 13, at 921d88e4; details with the lead / suqj.
cli/src/maity/runner/tmux.py addresses sessions with -t <name>; tmux matches a prefix, so once a session is gone a call can hit another whose name starts the same (e.g. maity_<p>web vs maity<p>_web-2). Use -t =<name> for every target (kill-session, send-keys, capture-pane, has-session, …).
Done when every tmux target is exact, with a test for the prefix case; cli/context/runner.md notes it.