Skip to content

v3.10.52 — No more leaked tmux sessions on Windows

Choose a tag to compare

@KevRojo KevRojo released this 28 Jul 04:14

🪟 Offloaded jobs stopped leaving a dead session behind on Windows.

When you TmuxOffload a task on Windows, the tmux pane defaults to PowerShell — and PowerShell 5.1 doesn't understand the bash &&/||/; in the old cleanup one-liner, so the trailing tmux kill-session never ran. The job finished and archived fine, but its session lingered forever with an idle PowerShell prompt, piling up on every offload.

Now Dulus writes a tiny .cmd wrapper and launches the session with that wrapper as its main process (tmux new-session -d -s … cmd.exe /c wrapper.cmd). The wrapper runs your tool, then always runs kill-session and exits — so the pane dies cleanly no matter what — with remain-on-exit forced off as a belt.

Verified on real Windows (tmux 3.3.6): session self-cleans, nothing left hanging. Linux/macOS behavior unchanged.

pip install -U dulus · PyPI