Repository navigation
deps(libtmux): Bump ~=0.68.0 -> ~=0.69.0 (#1113) - #1113
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
tony
added a commit
that referenced
this pull request
Nov 28, 2026
why: Match tmuxp's changelog convention of citing the PR number on each unreleased entry heading. what: - Add (#1113) to the Breaking changes, Dependencies, and Development headings under 1.83.0
why: Pick up libtmux 0.69.0. Server context managers leave a running tmux server alive on exit unless kill_on_exit=True is set, @ user options stay strings in show_option() and show_options(), and empty tmux format fields hydrate as "" instead of None while unset fields stay None. tmuxp requires no source changes for the upgrade. what: - Bump libtmux ~=0.68.0 -> ~=0.69.0 in pyproject.toml - Update uv.lock to libtmux 0.69.0 from PyPI (only libtmux moves) libtmux 0.69.0 (2026-11-27): - Server.__exit__() preserves running servers unless kill_on_exit=True is set (tmux-python/libtmux#728) - @ user options stay strings in show_option() and show_options() (tmux-python/libtmux#826) - Empty tmux format fields hydrate as "" while unset fields stay None (tmux-python/libtmux#900) See also: - https://github.com/tmux-python/libtmux/releases/tag/v0.69.0 - https://libtmux.git-pull.com/history/#libtmux-0-69-0-2026-11-27
why: Unpatched tmux 3.7 (2026-06-26) introduced four regressions that
upstream reverted or fixed five days later in 3.7a (2026-07-01), with
follow-up fixes in 3.7b (2026-07-01) and 3.7c (2026-08-17):
- Empty window and session names ("") fail with "invalid window name:"
or "invalid session name:" because check_name() and clean_name() in
tmux.c reject *name == '\0' (cmd-rename-window.c, cmd-new-window.c,
cmd-new-session.c, cmd-rename-session.c), breaking rename-window ""
and loading workspaces with window_name: ''. Fixed in 3.7a (commit
132a63d1d).
- ':' and '.' in session, session-group, and window names fail via
WINDOW_NAME_FORBID and SESSION_NAME_FORBID (":.") in tmux.h and
check_name() in tmux.c, breaking workspace names like my.project or
v1.0. Reverted in 3.7a (commit 166267c87 / 65a032b20).
- '#[' style directives in automatic-rename-format (names.c) and escape
titles (screen.c) are scrubbed to '_' by WINDOW_NAME_FORBID_EXT
(":.#") in clean_name() (tmux.c). Fixed in 3.7a (commits 4e612612d,
166267c87) to scrub only untrusted '#(' shell commands.
- break-pane without -n dereferences NULL and crashes the tmux server
due to an inverted 'if (name != NULL)' check in cmd_break_pane_exec()
(cmd-break-pane.c). Fixed in 3.7a (commit 84291b021).
- Ending a synchronized update (CSI ? 2026 l) in 3.7a omits PANE_REDRAW
in input_csi_dispatch_rm_private() (input.c), restored in 3.7b (commit
e802909de); 3.7c fixes unzooming before creating a floating pane and
new-window scrollbar initialization.
Setting fail-fast: false also lets every tmux leg finish when one leg
fails.
what:
- Replace tmux 3.7 with 3.7c in .github/workflows/tests.yml and
.github/tmux-releases.toml
- Set strategy.fail-fast: false in .github/workflows/tests.yml
See also:
- https://github.com/tmux/tmux/blob/3.7/tmux.c#L284-L318
- https://github.com/tmux/tmux/blob/3.7/tmux.h#L99-L103
- https://github.com/tmux/tmux/blob/3.7/cmd-rename-window.c#L53-L58
- https://github.com/tmux/tmux/blob/3.7/cmd-new-window.c#L73-L83
- https://github.com/tmux/tmux/blob/3.7/cmd-new-session.c#L102-L121
- https://github.com/tmux/tmux/blob/3.7/cmd-break-pane.c#L117-L124
- https://github.com/tmux/tmux/blob/3.7a/tmux.c#L284-L307
- https://github.com/tmux/tmux/blob/3.7b/input.c#L1956-L1960
why: tmuxp freeze reads window options via Window.show_options() and window names via Window.name. On libtmux 0.68.0, @badge="007" and @enabled="on" coerced to 7 and True, and rename-window "" hydrated Window.name as None (window_name: null), raising TypeError inside loader.expand() on reload. With libtmux 0.69.0, @ user options stay strings and an unnamed window freezes as "" and reloads cleanly. what: - Add test_freeze_preserves_window_user_options_and_empty_name in tests/workspace/test_freezer.py covering freezer.freeze(), YAML round-trip, and loader.expand()
why: Document the libtmux~=0.69.0 minimum, the tmuxp freeze changes on window @ user options and unnamed windows, and the tmux 3.7 regressions that led CI to pin 3.7c (#1113). what: - Add a Breaking changes entry showing live window setup and Before/Now frozen YAML for @ user options and unnamed windows (#1113) - Add a Dependencies entry for libtmux~=0.69.0 (#1113) - Add a Development entry citing the unpatched tmux 3.7 C regressions and their 3.7a/3.7b/3.7c fixes (#1113)
tony
force-pushed
the
deps/libtmux-0.69.0
branch
from
November 28, 2026 10:57
b7e6a44 to
815c37d
Compare
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.68.0to~=0.69.0.@user options as strings duringtmuxp freeze.window_name: ''instead ofnullduringtmuxp freeze.loader.expand()withoutTypeError.tmux3.7c instead of superseded unpatched 3.7 in CI, withfail-fast: false.Upstream changes
libtmux 0.69.0 (2026-11-27)
Server.__exit__()leaves a running tmux server alive on context exit unlessServer(..., kill_on_exit=True)is passed (Scoping a Server no longer kills it libtmux#728). tmuxp does not usewith Server()as a context manager.@user options staystrinshow_option()andshow_options()instead of converting digit strings tointor"on"/"off"tobool, and unescape tmuxshow-optionsoutput across tmux 3.3a+ (options(fix): Preserve user-option strings libtmux#826).tmuxp freezecallsWindow.show_options(), so frozen@options stay strings and pass through$VARand~expansion ontmuxp load.parse_output()hydrates present-but-empty tmux format fields as""while keeping unset fields asNone(neo(fix[parse_output]): Keep empty tmux fields as empty strings libtmux#900). An unnamed window (rename-window "") freezes aswindow_name: ''instead ofnull.Given a live window renamed to
""with@badgeset to007and@enabledset toon:Before (
libtmux0.68.0):After (
libtmux0.69.0):Release: https://github.com/tmux-python/libtmux/releases/tag/v0.69.0
Changelog: https://libtmux.git-pull.com/history/#libtmux-0-69-0-2026-11-27
tmux 3.7 vs 3.7a / 3.7b / 3.7c
Unpatched tmux 3.7 (2026-06-26) shipped four regressions fixed five days later in 3.7a (2026-07-01), followed by additional fixes in 3.7b (2026-07-01) and 3.7c (2026-08-17):
"") fail withinvalid window name:/invalid session name:becausecheck_name()andclean_name()reject*name == '\0'intmux.c, blockingrename-window ""(cmd-rename-window.c) andnew-window -n ""(cmd-new-window.c).:and.in session, session-group, and window names fail viaWINDOW_NAME_FORBIDandSESSION_NAME_FORBID(":.") intmux.handcmd-new-session.c, breaking workspace names containing.or:.#[style directives inautomatic-rename-formatand escape-set titles are scrubbed to_viaWINDOW_NAME_FORBID_EXT(":.#") intmux.c;tmux 3.7arestricts#scrubbing to untrusted#(shell commands and restores:,., and"".break-panewithout-ndereferencesNULLand crashes the server due to an invertedif (name != NULL)guard incmd-break-pane.c.tmux 3.7brestoresPANE_REDRAWat the end of a synchronized update (CSI ? 2026 l), and3.7cfixes unzooming before creating a floating pane and new-window scrollbar initialization.Changes
pyproject.tomlanduv.lock: bumplibtmuxto~=0.69.0and re-lock (libtmuxis the only package updated inuv.lock).tests/workspace/test_freezer.py: addtest_freeze_preserves_window_user_options_and_empty_namecovering@badge="007",@enabled="on", andwindow_name=""acrossfreezer.freeze(), YAML round-trip, andloader.expand()..github/workflows/tests.ymland.github/tmux-releases.toml: replace unpatched3.7with3.7c(the latest 3.7 patch release) and setfail-fast: false.CHANGES: add unreleased entries under### Breaking changes,### Dependencies, and### Development.Test plan
test_freeze_preserves_window_user_options_and_empty_namefails onlibtmux0.68.0 (TypeErrorinloader.expandonwindow_name: null, plus@badge: 7and@enabled: True) and passes onlibtmux0.69.03.7crelease pin (uv run pytest .github/scripts/test_tmux_build.py --reruns=0)uv run ruff format --check . .github/scriptsanduv run ruff check . .github/scripts)libtmux0.69.0 (uv run mypy .anduv run mypy --python-version 3.11 .github/scripts)libtmux0.69.0 installed from PyPI (uv run py.test)CHANGESentries with no MyST or link warnings (just build-docs)3.3a,3.4,3.5,3.6,3.7c,3.8,master) passes in CI