diff --git a/CHANGES b/CHANGES index 7d7b923a2e..d611022038 100644 --- a/CHANGES +++ b/CHANGES @@ -44,6 +44,44 @@ $ tmuxp@next load yoursession _Notes on the upcoming release will go here._ +### Breaking changes + +#### `shell_command` on a closed pane raises `TmuxObjectDoesNotExist` (#1112) + +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. Keep `exit` as the last command in the +pane, or set `remain-on-exit`: + +```yaml +# Before: the second command was dropped once exit closed the pane +panes: + - shell_command: + - cmd: exit + sleep_after: 0.2 + - cmd: echo unreachable + +# After: exit last, or keep the pane open with remain-on-exit +panes: + - shell_command: + - cmd: echo runs first + - cmd: exit +``` + +This comes from libtmux 0.68.0. + +### Dependencies + +#### Minimum `libtmux~=0.68.0` (was `~=0.67.1`) (#1112) + +Picks up libtmux 0.68.0. Closed panes, windows and sessions raise +`TmuxObjectDoesNotExist` (including from `Pane.capture_pane()` and +`Pane.send_keys()`), `Server.run_shell()` raises `VersionTooLow` on tmux 3.3a +and 3.4 instead of returning `[]`, `Session.new_window(select_existing=True)` +reuses a window by index or target on every tmux, and `expand_formats` is the +one parameter name for tmux's `-F`. See the +[libtmux 0.68.0 release notes](https://libtmux.git-pull.com/history/#libtmux-0-68-0-2026-11-24). + ## tmuxp 1.81.0 (2026-11-22) tmuxp 1.81.0 updates libtmux to 0.67.1. A `#` in a workspace's `session_name`, diff --git a/pyproject.toml b/pyproject.toml index 0672c65f19..97ec8a19ed 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ include = [ { path = "conftest.py", format = "sdist" }, ] dependencies = [ - "libtmux~=0.67.1", + "libtmux~=0.68.0", "PyYAML>=6.0" ] diff --git a/uv.lock b/uv.lock index db82cbf6e0..f9c5c37e99 100644 --- a/uv.lock +++ b/uv.lock @@ -709,11 +709,11 @@ wheels = [ [[package]] name = "libtmux" -version = "0.67.1" +version = "0.68.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/72/f3/d33065929a6fe8c1005f34ebd8efc07be6fce4f068adfa3569005668b205/libtmux-0.67.1.tar.gz", hash = "sha256:4de44cc40e35aed07cdf75f6f8d4062efa16731234ce8e2658d2f3b8edc20341", size = 711035, upload-time = "2026-11-23T01:17:57.558Z" } +sdist = { url = "https://files.pythonhosted.org/packages/d9/87/2f05a4cd7f89d4951db975be2c627ccc8ac2d0fe1a4b0ac819c49450fe66/libtmux-0.68.0.tar.gz", hash = "sha256:730bff45c4dcfb4d2094a863d28d88aca81d6d8de6c1f47a79f0ed6a2a18be4a", size = 717849, upload-time = "2026-11-25T01:20:41.288Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/00/16/b964757ba53e66c6cdb13100ad21b8ee0cc164095b59b07cb57341376b40/libtmux-0.67.1-py3-none-any.whl", hash = "sha256:d1b1fd5d4b7831b20fbc93750e3d3e66392eb770edfaf3f668fdf567a2e20160", size = 160521, upload-time = "2026-11-23T01:17:56.29Z" }, + { url = "https://files.pythonhosted.org/packages/c8/c6/640b4241be4c955abb44da700d15773ead95a181e8533b03040a17447d1e/libtmux-0.68.0-py3-none-any.whl", hash = "sha256:348f6de3f681a22f0d702a1f669c474428b2f3e440a75cae772cde86fb08b9b9", size = 162976, upload-time = "2026-11-25T01:20:38.768Z" }, ] [[package]] @@ -1612,7 +1612,7 @@ testing = [ [package.metadata] requires-dist = [ - { name = "libtmux", specifier = "~=0.67.1" }, + { name = "libtmux", specifier = "~=0.68.0" }, { name = "pyyaml", specifier = ">=6.0" }, ]