Skip to content

Commit cebe172

Browse files
authored
py(deps) Bump libtmux 0.52.1 -> 0.53.0 (#1003)
## libtmux 0.52.1 -> 0.53.0 Bug fix for session attaching ## Bug fix for `tmuxp load` ### User Experience After running `tmuxp load`, users would see this traceback printed to their terminal after detaching: ``` Traceback (most recent call last): File "/home/d/.local/bin/tmuxp", line 7, in <module> sys.exit(cli.cli()) ... File ".../tmuxp/cli/load.py", line 152, in _load_attached builder.session.attach() File ".../libtmux/session.py", line 332, in attach self.refresh() File ".../libtmux/neo.py", line 242, in fetch_obj raise exc.TmuxObjectDoesNotExist(...) libtmux.exc.TmuxObjectDoesNotExist: Could not find object ``` ### Root Cause The issue was caused by libtmux's `Session.attach()` calling `refresh()` after `attach-session` returned. Since `attach-session` is a **blocking interactive command**, the session state can change arbitrarily during attachment - including being killed entirely. ### Timeline - **Feb 2024**: 9a5147aa - `Session.attach()` was added with the `refresh()` call - **Nov 2025**: tmuxp fdafdd2b switched from `attach_session()` to `attach()` - Users started experiencing the bug ### Fix The fix is in libtmux: tmux-python/libtmux#616 This PR adds a regression test to tmuxp to ensure the behavior is documented and tested.
2 parents 1a55e88 + 240d85f commit cebe172

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

CHANGES

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ $ pipx install --suffix=@next 'tmuxp' --pip-args '\--pre' --force
3131

3232
<!-- To maintainers and contributors: Please add notes for the forthcoming version below -->
3333

34+
### Breaking changes
35+
36+
#### libtmux 0.52.1 (#1001)
37+
38+
libtmux minimum version bumped from 0.52.1 -> 0.53.0.
39+
40+
### Bug fixes
41+
42+
#### Fixed traceback on session load (#1002, #1003)
43+
44+
Fixed issue where session killed tracebacks should show after `tmuxp load`'s attach.
45+
3446
## tmuxp 1.61.0 (2025-12-07)
3547

3648
### Breaking changes

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ include = [
3939
{ path = "conftest.py", format = "sdist" },
4040
]
4141
dependencies = [
42-
"libtmux~=0.52.1",
42+
"libtmux~=0.53.0",
4343
"colorama>=0.3.9",
4444
"PyYAML>=6.0"
4545
]

uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)