Skip to content

v1.82.0 - libtmux 0.68.0

Latest

Choose a tag to compare

@tony tony released this 25 Nov 03:04

tmuxp 1.82.0 updates libtmux to 0.68.0. When an earlier entry in a pane's shell_command list closes the pane before a later entry runs, loading the workspace now raises TmuxObjectDoesNotExist instead of ignoring the missing pane.

Highlights

Sending a shell_command to a closed pane raises TmuxObjectDoesNotExist

WorkspaceBuilder sends each pane's shell_command entries through Pane.send_keys(). When an earlier command (such as exit) closes the pane before a later entry runs, loading the workspace now raises TmuxObjectDoesNotExist instead of dropping the later command.

Previously, the second command was dropped once exit closed the pane:

panes:
  - shell_command:
      - cmd: exit
        sleep_after: 0.2
      - cmd: echo unreachable

Put exit last instead (or set remain-on-exit to keep the pane open):

panes:
  - shell_command:
      - cmd: echo runs first
      - cmd: exit

libtmux 0.68.0

tmuxp now requires libtmux ~=0.68.0 (was ~=0.67.1). libtmux 0.68.0 raises TmuxObjectDoesNotExist on closed panes, windows and sessions (including from Pane.capture_pane() and Pane.send_keys()), raises VersionTooLow from foreground Server.run_shell() on tmux 3.3a and 3.4 where tmux keeps the output in copy mode, reuses windows by index or target in Session.new_window() with select_existing=True, and makes expand_formats the one parameter name for tmux's -F.

See the changelog for the full list.

What's Changed

Full Changelog: v1.81.0...v1.82.0