Skip to content

deps(libtmux): Bump ~=0.68.0 -> ~=0.69.0 (#1113) - #1113

Merged
tony merged 4 commits into
masterfrom
deps/libtmux-0.69.0
Nov 28, 2026
Merged

tony merged 4 commits into
masterfrom
deps/libtmux-0.69.0

Conversation

@tony

@tony tony commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Bump libtmux from ~=0.68.0 to ~=0.69.0.
  • Preserve window @ user options as strings during tmuxp freeze.
  • Freeze unnamed windows as window_name: '' instead of null during tmuxp freeze.
  • Reload frozen unnamed windows cleanly through loader.expand() without TypeError.
  • Exercise tmux 3.7c instead of superseded unpatched 3.7 in CI, with fail-fast: false.

Upstream changes

libtmux 0.69.0 (2026-11-27)

Given a live window renamed to "" with @badge set to 007 and @enabled set to on:

$ tmux rename-window "" && \
    tmux set-option -w @badge 007 && \
    tmux set-option -w @enabled on

Before (libtmux 0.68.0):

windows:
  - window_name: null
    options:
      '@badge': 7
      '@enabled': true

After (libtmux 0.69.0):

windows:
  - window_name: ''
    options:
      '@badge': '007'
      '@enabled': 'on'

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):

  • Empty window and session names ("") fail with invalid window name: / invalid session name: because check_name() and clean_name() reject *name == '\0' in tmux.c, blocking rename-window "" (cmd-rename-window.c) and new-window -n "" (cmd-new-window.c).
  • : and . in session, session-group, and window names fail via WINDOW_NAME_FORBID and SESSION_NAME_FORBID (":.") in tmux.h and cmd-new-session.c, breaking workspace names containing . or :.
  • #[ style directives in automatic-rename-format and escape-set titles are scrubbed to _ via WINDOW_NAME_FORBID_EXT (":.#") in tmux.c; tmux 3.7a restricts # scrubbing to untrusted #( shell commands and restores :, ., and "".
  • break-pane without -n dereferences NULL and crashes the server due to an inverted if (name != NULL) guard in cmd-break-pane.c.
  • tmux 3.7b restores PANE_REDRAW at the end of a synchronized update (CSI ? 2026 l), and 3.7c fixes unzooming before creating a floating pane and new-window scrollbar initialization.

Changes

  • pyproject.toml and uv.lock: bump libtmux to ~=0.69.0 and re-lock (libtmux is the only package updated in uv.lock).
  • tests/workspace/test_freezer.py: add test_freeze_preserves_window_user_options_and_empty_name covering @badge="007", @enabled="on", and window_name="" across freezer.freeze(), YAML round-trip, and loader.expand().
  • .github/workflows/tests.yml and .github/tmux-releases.toml: replace unpatched 3.7 with 3.7c (the latest 3.7 patch release) and set fail-fast: false.
  • CHANGES: add unreleased entries under ### Breaking changes, ### Dependencies, and ### Development.

Test plan

  • test_freeze_preserves_window_user_options_and_empty_name fails on libtmux 0.68.0 (TypeError in loader.expand on window_name: null, plus @badge: 7 and @enabled: True) and passes on libtmux 0.69.0
  • Cache key invalidation and native cache recovery pass with the 3.7c release pin (uv run pytest .github/scripts/test_tmux_build.py --reruns=0)
  • Formatting and lint rules pass across package and CI scripts (uv run ruff format --check . .github/scripts and uv run ruff check . .github/scripts)
  • Strict static type checks pass against libtmux 0.69.0 (uv run mypy . and uv run mypy --python-version 3.11 .github/scripts)
  • Functional and doctest suites pass against libtmux 0.69.0 installed from PyPI (uv run py.test)
  • Sphinx renders the unreleased CHANGES entries with no MyST or link warnings (just build-docs)
  • Full tmux matrix (3.3a, 3.4, 3.5, 3.6, 3.7c, 3.8, master) passes in CI

@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 (adf13b7) to head (815c37d).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1113   +/-   ##
=======================================
  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.

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
tony added 4 commits November 28, 2026 04:46
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
tony force-pushed the deps/libtmux-0.69.0 branch from b7e6a44 to 815c37d Compare November 28, 2026 10:57
@tony tony changed the title libtmux 0.69.0 deps(libtmux): Bump ~=0.68.0 -> ~=0.69.0 (#1113) Nov 28, 2026
@tony
tony merged commit 5f03030 into master Nov 28, 2026
14 checks passed
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