Repository navigation
deps(libtmux): Bump ~=0.69.0 -> ~=0.70.0 - #1114
Merged
Merged
Conversation
why: Pick up libtmux 0.70.0. Server.raise_if_dead() redirects list-sessions output to DEVNULL (fixing leaked stdout in tmuxp shell), malformed and non-executable tmux binaries raise TmuxCommandNotFound (caught cleanly by tmuxp's CLI startup guard), command and channel waits gain opt-in timeouts, raised failures stay in the exception channel, and show_option() and QueryList add @overload return types. what: - Bump libtmux ~=0.69.0 -> ~=0.70.0 in pyproject.toml - Update uv.lock to libtmux 0.70.0 from PyPI (only libtmux moves) See also: - https://github.com/tmux-python/libtmux/releases/tag/v0.70.0 - https://libtmux.git-pull.com/history/#libtmux-0-70-0-2026-11-28
why: Verify both user-visible CLI fixes picked up from libtmux 0.70.0 with tests that fail against libtmux 0.69.0. what: - Add test_shell_command_does_not_leak_list_sessions_output in tests/cli/test_shell.py capturing fd 1 and fd 2 - Add test_cli_reports_malformed_tmux_binary_without_traceback in tests/cli/test_cli.py using an invalid ELF binary on PATH
why: Record the libtmux~=0.70.0 minimum and the user-visible tmuxp shell and CLI startup fixes in the unreleased 1.84.0 changelog. what: - Add a Dependencies entry for libtmux~=0.70.0 in CHANGES - Add a Fixes entry for tmuxp shell stdout suppression and unusable tmux binary handling in CHANGES
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1114 +/- ##
=======================================
Coverage 82.55% 82.55%
=======================================
Files 31 31
Lines 2769 2769
Branches 518 518
=======================================
Hits 2286 2286
Misses 346 346
Partials 137 137 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
why: Dependency bump entries across 1.77.0 through 1.84.0 recited libtmux APIs and internals that tmuxp never calls and that do not alter tmuxp's own behavior. what: - Trim 1.77.0, 1.79.0, 1.80.0, 1.81.0, 1.82.0, 1.83.0, and 1.84.0 libtmux dependency entries to their release-notes links (their tmuxp-visible changes already sit in each version's own sections) - Narrow 1.78.0's libtmux 0.64.0 note to leading-dash/trailing-semicolon values and newline-bearing pane paths, dropping unused kill_window and select_pane index notes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
libtmuxfrom~=0.69.0to~=0.70.0.tmux list-sessionslines ontmuxp shellstandard output.tmuxbinaries without anOSErrortraceback.mypycompatibility againstlibtmux0.70.0 option and query overloads.Upstream changes
libtmux 0.70.0 (2026-11-28)
Server.raise_if_dead()redirectsstdoutandstderrtosubprocess.DEVNULLwhen probinglist-sessions(Server(fix[raise_if_dead]): Suppress check_call output libtmux#641).tmuxp shellcallsserver.raise_if_dead()before running-cor launching a Python console, so session listing lines no longer print ahead of user output.tmux_cmdandServer.raise_if_dead()translate missing, non-executable (EACCES), and malformed (ENOEXEC)tmuxbinaries intoTmuxCommandNotFoundwhile preserving OS diagnostics (logging(feat): Document logging and define failure ownership libtmux#748).tmuxp's startupexcept TmuxCommandNotFound:guard intmuxp.cli.cli()now catches non-executable and malformedtmuxbinaries cleanly instead of exiting with anOSErrortraceback.Running
tmuxp shell -c:$ tmuxp shell -L demo my_session -c "print('ready')"Before (
libtmux0.69.0):After (
libtmux0.70.0):Release: https://github.com/tmux-python/libtmux/releases/tag/v0.70.0
Changelog: https://libtmux.git-pull.com/history/#libtmux-0-70-0-2026-11-28
Changes
pyproject.tomlanduv.lock: bumplibtmuxto~=0.70.0and re-lock from PyPI (libtmuxis the only package updated inuv.lock).tests/cli/test_shell.py: addtest_shell_command_does_not_leak_list_sessions_outputverifying file descriptors 1 and 2 duringtmuxp shell -c.tests/cli/test_cli.py: addtest_cli_reports_malformed_tmux_binary_without_tracebackverifying CLI startup against a malformedtmuxbinary onPATH.CHANGES: add unreleased### Dependenciesand### Fixesentries under1.84.0, and trim non-materiallibtmuxlibrary recaps from1.77.0–1.83.0.Test plan
test_shell_command_does_not_leak_list_sessions_outputandtest_cli_reports_malformed_tmux_binary_without_tracebackfail onlibtmux0.69.0 and pass onlibtmux0.70.0uv run pytest .github/scripts/test_tmux_build.py --reruns=0)uv run ruff format --check . .github/scriptsanduv run ruff check . .github/scripts)mypychecks pass againstlibtmux0.70.0 (uv run mypy .anduv run mypy --python-version 3.11 .github/scripts)libtmux0.70.0 from PyPI (uv run pytest)CHANGESentries (just build-docs)3.3a,3.4,3.5,3.6,3.7c,3.8,master) in CI