Skip to content

v0.7.2: target tmux sessions by exact match - #6

Merged
marioolf merged 1 commit into
mainfrom
dev
Jul 13, 2026
Merged

marioolf merged 1 commit into
mainfrom
dev

Conversation

@marioolf

Copy link
Copy Markdown
Owner

v0.7.2 — bug fix

Opening a task could land on the wrong session. tmux matches session targets by prefix, so a default task's session crabby_<ws> matched a named task's crabby_<ws>_<task> — e.g. opening main attached to test-task instead. Crabby now targets sessions with tmux's = exact-match form in has-session/kill-session/attach-session/rename-window.

This also fixes the same latent collision between workspaces whose names share a prefix (e.g. test and test2).

display-message (Attached/Activity) keeps a plain target — its -t is a target-pane, which rejects =; the dashboard reads attachment from ListSessions, which keys on exact names. Regression test added.

tmux matches session targets by prefix, so a default task's session
(crabby_<ws>) matched a named task's (crabby_<ws>_<task>) — opening the
default task attached to a different one. Target sessions with the '='
exact-match form in has-session/kill-session/attach-session/rename.
Also fixes the same collision between workspaces whose names share a
prefix (test vs test2). Regression test added.

display-message keeps a plain target (its -t is a target-pane, which
rejects '='); the dashboard reads attachment from ListSessions, which
keys on exact names.
@marioolf
marioolf merged commit 77a4762 into main Jul 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant