Skip to content

deps(libtmux): Bump ~=0.69.0 -> ~=0.70.0 - #1114

Merged
tony merged 4 commits into
masterfrom
deps/libtmux-0.70.0
Nov 29, 2026
Merged

tony merged 4 commits into
masterfrom
deps/libtmux-0.70.0

Conversation

@tony

@tony tony commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Bump libtmux from ~=0.69.0 to ~=0.70.0.
  • Suppress leaked tmux list-sessions lines on tmuxp shell standard output.
  • Report malformed and non-executable tmux binaries without an OSError traceback.
  • Verify strict mypy compatibility against libtmux 0.70.0 option and query overloads.

Upstream changes

libtmux 0.70.0 (2026-11-28)

Running tmuxp shell -c:

$ tmuxp shell -L demo my_session -c "print('ready')"

Before (libtmux 0.69.0):

my_session: 1 windows (created Sat Nov 28 17:24:07 2026)
ready

After (libtmux 0.70.0):

ready

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.toml and uv.lock: bump libtmux to ~=0.70.0 and re-lock from PyPI (libtmux is the only package updated in uv.lock).
  • tests/cli/test_shell.py: add test_shell_command_does_not_leak_list_sessions_output verifying file descriptors 1 and 2 during tmuxp shell -c.
  • tests/cli/test_cli.py: add test_cli_reports_malformed_tmux_binary_without_traceback verifying CLI startup against a malformed tmux binary on PATH.
  • CHANGES: add unreleased ### Dependencies and ### Fixes entries under 1.84.0, and trim non-material libtmux library recaps from 1.77.0–1.83.0.

Test plan

  • test_shell_command_does_not_leak_list_sessions_output and test_cli_reports_malformed_tmux_binary_without_traceback fail on libtmux 0.69.0 and pass on libtmux 0.70.0
  • Native tmux build cache recovery passes (uv run pytest .github/scripts/test_tmux_build.py --reruns=0)
  • Formatting and lint checks pass (uv run ruff format --check . .github/scripts and uv run ruff check . .github/scripts)
  • Strict mypy checks pass against libtmux 0.70.0 (uv run mypy . and uv run mypy --python-version 3.11 .github/scripts)
  • Functional and doctest suites pass against libtmux 0.70.0 from PyPI (uv run pytest)
  • Sphinx documentation builds cleanly with the new CHANGES entries (just build-docs)
  • Full tmux matrix (3.3a, 3.4, 3.5, 3.6, 3.7c, 3.8, master) in CI

tony added 3 commits November 28, 2026 17:28
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

codecov Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.55%. Comparing base (1fa710e) to head (4638c72).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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
@tony
tony merged commit af881f1 into master Nov 29, 2026
14 checks passed
@tony
tony deleted the deps/libtmux-0.70.0 branch November 29, 2026 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant