Repository navigation
Description
Each release after 0.64.0 carries one kind of breaking change, narrowest first, so a pin just below any of them keeps every safer fix.
Shipped in 0.64.0, fixes with no breaking change:
-
import libtmuxwhensys.stdouthas noencoding_compat(fix): Stop readingsys.stdout.encodingat import #890 (Need avoiding relying on sys.stdout #600). - Lookup exception subclasses under mypy exc(fix[typing]): Accept forwarded kwargs in lookup errors #891 (Subclassing
ObjectDoesNotExistand forwarding**kwargsfails mypy #737). -
send_keystext starting with-Pane(fix[send_keys]): Send text that starts with a dash #892 (Pane.send_keystypes nothing and raises nothing for text that starts with-#838). - Values starting with
-in rename, buffer, message and environment calls tmux(fix[args]): Treat values that start with a dash as data #893 (Positional values starting with-are parsed as flags across wrappers #864). -
send_keys(hex_keys=True)with more than one byte Pane(fix[send_keys]): Send each hex byte as its own argument #894 (Pane.send_keys(hex_keys=True)drops multi-byte hex and sendsEnter#880). -
refresh()clears emptied fields neo(fix[refresh]): Clear fields tmux reports as empty #895 (parse_outputdrops""values andObj._refreshleaves stale fields #445). -
select_pane(index)stays in its window Window(fix[select_pane]): Select a pane index in this window #896 (select_pane not working correctly with multiple sessions #487). -
kill_window(name)stays in its session Session(fix[kill_window]): Kill a named window in this session #897 (Window killed in another session rather than specified #302). - Mask environment values in logs common(fix[logging]): Mask environment values in logged argv #898 (
tmux_cmdlogs unredactedset-environment, buffer, and key values #866). -
repr(Server())names the socket tmux uses Resolve the socket path in Server's repr instead of hard-coding /tmp #727 (Server.__repr__hard-codes/tmp/tmux-<euid>/default, ignoring$TMUX_TMPDIR#723). - Newline in a pane's path breaks listings Regroup listing records on the field separator, not newlines #752 (
fetch_objssplitslist-*records when a format field contains a newline #240). - Values ending in
;passed as data Pane(fix[send_keys]): Pass values ending in ; as data #845 (An argument ending in;runs the next argument as a tmux command #844). -
retry_untilarguments and monotonic clock Fixretry_until's clock, and let it forward args #729 (retry_until's zero-arg predicate forces a loop-variable closure that ruffB023and mypy disagree about #726). - Automation-pattern examples wait for the command Automation patterns: wait for tmux instead of guessing #734 (docs(automation_patterns): the wait helpers never wait — the marker matches the command echo #706, docs(pane_interaction, workspace_setup): the same shell-echo race #706 fixed in automation_patterns #715).
- Control-mode test timeout Bound the control-mode wait off the descriptor #733 (
test_control_mode_stdout_preserves_non_ascii_outputpollsselecton a buffered stream #731).
Shipped in 0.65.0, capability matrix and tmux 3.3a minimum:
- One table for tmux feature gates Capabilities(feat): Gate tmux features from one table #887.
- Require tmux 3.3a tmux(feat[minimum]): Require tmux 3.3a #888 (Verify connected
tmuxdaemon meets the3.3aminimum before dispatch #777).
Shipped in 0.66.0, narrow changes:
- Owner-only
save_bufferfiles Server(fix[save_buffer]): Create the saved file owner-only #903 (Server.save_buffercreates destination files under daemon umask (0644) #865). - No Enter after
hex_keysby default Pane(fix[send_keys]): Send hex keys without a trailing Enter #904 (Pane.send_keys(hex_keys=True)drops multi-byte hex and sendsEnter#880). -
SocketPathTooLongMeasure a tmux socket path where tmux resolves it #730 (Serverdoes not validate socket path length; overrun surfaces as a raw tmuxFile name too long#725).
Shipped in 0.67.0, names and targets:
-
exact=for session names Server(feat[kill_session]): Add exact= to match session names exactly #899 (DefaultServer.kill_session(),switch_client(), andattach_session()toexact=True#839). - Literal
#in names, titles and start directories tmux(fix[formats]): Keep # literal in names, titles and directories #901 (#in names, titles, andstart_directoryexpands as a tmux format #863). - Opt into tmux formats with
Format, and keep#[literal formats(feat[Format]): Opt into tmux formats #910 (#escape corrupts#[, and typed methods lack a tmux-format opt-in #909).
Shipped in 0.67.1, fixes for 0.67.0's literal names:
- What a format can run, in the format guide docs(formats): Say what a format can run #915 (
select_existing=Truemismatches literal window names on tmux 3.3a, 3.7+ #914). -
new_window(select_existing=True)finds literal window names on every tmux Session(fix[new_window]): Look up reuse by name #917 (select_existing=Truemismatches literal window names on tmux 3.3a, 3.7+ #914).
Shipped in 0.68.0, calls that now raise and select_existing follow-ups:
-
TmuxObjectDoesNotExistfor closed panes, windows and sessions tmux(fix[errors]): Raise TmuxObjectDoesNotExist for a closed target #902 (MissingTmuxObjectDoesNotExistand silent stderr on closed targets #340). -
send_keysandenterraise on tmux errors, in tmux(fix[errors]): Raise TmuxObjectDoesNotExist for a closed target #902 (Pane.send_keystypes nothing and raises nothing for text that starts with-#838). -
run_shellraises on tmux 3.3a and 3.4 instead of returning[]Server(fix[run_shell]): Refuse output tmux keeps #918 (Gatesplit-window -p(3.4) andcopy_mode(page_down=True)(3.5) in the capability table #911). -
new_window(select_existing=True)reuses bywindow_indexortarget_windowon every tmux Session(fix[new_window]): Reuse by index or target on every tmux #827 (new_window(select_existing=True)raisesIndexErroron reuse #821): libtmux finds the window; a name passed with an index must match the window there. - One name for the
-Fopt-in:expand_formatslibtmux(feat[expand_formats]): One name for -F #919 (Unify the-Fopt-in:expand_formats,expand_format,_format#912). -
select_existingnames its#{command}lookup limit Session(docs[new_window]): Note the #{command} lookup limit #921 (select_existing=Truemismatches literal window names on tmux 3.3a, 3.7+ #914). -
select_existingnotesWindow.__exit__on reused windows Session(docs[new_window]): NoteWindow.__exit__onselect_existingreuse #926 (new_window(select_existing=True)raisesIndexErroron reuse #821). - Environment tests wait for the shell tests(Session,Window): Wait for the shell before reading env output #922 (Intermittent / flaky test test_capture_pane #484).
Shipped in 0.69.0, changes most callers will see:
- Empty tmux fields read
""neo(fix[parse_output]): Keep empty tmux fields as empty strings #900 (parse_outputdrops""values andObj._refreshleaves stale fields #445). - User options returned as strings options(fix): Preserve user-option strings #826 (
show_optioncoerces user options, so an@option set to123oroncomes back as an int or a bool #759). -
with Server()keeps the server running Scoping a Server no longer kills it #728 (Server.__exit__kills any live server, including one it did not start #724).
Shipped in 0.70.0, logging, failure ownership, timeouts, and strict typing:
- Structured logging docs, failure ownership, and symmetric C-grammar environment masking across
tmux_cmdandshow-environmenttmux_stdoutlogging(feat): Document logging and define failure ownership #748 (Documentation: how to use internal libtmux logging #744,tmux_cmdlogs unredactedset-environment, buffer, and key values #866; closes common(feat[logging]): Mask typed keys and buffer data in logs #905 and common(feat[logging]): Let callers choose the logged argv redactor #906, keeping typed keys and buffer payloads visible atDEBUGwhile removing command payloads from defaultERRORlogs). - Remove non-functional
*argsfromtemp_window()Temporary(fix[temp_window]): Remove unused *args #619. - Request a terminal clipboard with
Client.request_clipboard()Client(feat): Request a terminal clipboard #889. - Bounded command,
wait-for, and listing execution (TmuxCommandTimeout,Server(*, timeout=None),{Server,Session,Window,Pane}.cmd(timeout=...),Server.wait_for(timeout=...), andneo.fetch_objs) Command(feat[timeout]): Bound commands, waits, and listings #807 (Server.wait_for()has no timeout, so a pane that never signals hangs forever #732, ReapAsyncServer.wait_foron task cancel and exposetmux 3.8wait-for -l/-w#870, Operationalize typed operations and engines (follow-up to #688) #689; supersedes server(feat[wait]) Bound ordinary channel waits #809, Bound a tmux command that may never return #735, and Bound every tmux command from a server-wide timeout, listings included #757). - Test against
tmux 3.7cin CI ci(tests): Exercise tmux 3.7c in place of 3.7b #746, suppressServer.raise_if_dead()check_calloutput Server(fix[raise_if_dead]): Suppress check_call output #641 (Serverliveness, list error handling, andEnvironmentMixinerrors #704), and land repo hygiene (dev(chore): Remove unused Node version pin #834, Just(chore): Clean ignored build output #783). - Ready documentation and asset updates: README policy and minor-series pin (README(docs): Link the AI policy #793, README(docs): Pin a minor series without naming one #824), native tmux citations (Docs(fix[api]): Refresh native tmux API citations #774), explicit fixture and socket setup (docs(fix): Correct library setup and terminal examples #797),
Serverdocstring overview and capability directory (Server(docs[overview]): Group members by purpose #785, Server(docs): Complete the capability directory #813), and logos / social card (docs(feat[brand]): Add Python logo and brand kit #760, docs(feat[brand]): Show a query on the sharing card #816). - Replace
mypywithty, RuffANN, andshow_option@overloadtypes dev(ty): Replacemypywith stricttyand RuffANN#682 (Investigate ty type checker alongside mypy #681), landed at the end of the0.70.0batch.
Planned for 0.71.0, non-breaking fixes, opt-in checks, CI, and conformance tests:
- Update
tyand benchmark full-project type checking upgrade ty #936 (Updatetyto 0.0.113 and benchmark the full project #935). - Replace
.github/scripts/tmux_build.pywithlibtmux/setup-tmuxand documentmise-tmuxReplace.github/scripts/tmux_build.pywithlibtmux/setup-tmux#941 (Replace.github/scripts/tmux_build.pywithlibtmux/setup-tmux#940, libtmux/central#22). -
Server.attached_sessionslists sessions with one or more attached clients List sessions with one or more attached clients #949 (Server.attached_sessionsomits sessions with attached clients #943). -
Pane.send_keys()checks text-send client exit status before pressingEnterCheck the text send before pressing Enter #948 (Pane.send_keys()proceeds to Enter after a silent client failure #946). -
Server.new_session()reads multiline working-directory replies fromnew-session -P(new_session()raises after creating a session in a newline path #942; unstack Read the session ID and path from the creation reply #951 ontomasterwith a privatetmux_cmdbyte helper rather than Engine(feat): Add raw-byte libtmux.engine seam and capabilities #739). - Opt-in checked
Pane.capture_pane(check=True)to distinguish blank screens from missing targets or stopped servers (Add a checkedPane.capture_pane()for callers that need a real read #944, Bullet proofing forcapture_pane#456; unstack Distinguish blank pane captures from failed reads #952 ontomaster). - Opt-in
Server.has_session_strict()to confirm exact session absence without swallowing transport errors (part ofServerliveness, list error handling, andEnvironmentMixinerrors #704; unstack Confirm exact session absence before removing saved state #955 ontomaster). - FIRE conformance suite for pane output, input delivery, and job exit Verify pane job results with the FIRE suite #957 (Add a FIRE test for pane output, input delivery and job exit #956, libtmux/central#23; drop the strict
xfailmarkers forPane.send_keys()proceeds to Enter after a silent client failure #946 andnew_session()raises after creating a session in a newline path #942 as Check the text send before pressing Enter #948 and Read the session ID and path from the creation reply #951 land). - Ready non-breaking docs and test updates:
libtmux.orgshared-shell docs publishing (docs: join the Python build to the libtmux.org shared shell #755, docs(ci): Publish to libtmux.org alongside git-pull.com #756; Docs(ci): Adopt Sphinx inventories #787 closed after ci(docs) Pin the docs workflows to libtmux/docs 6e47aa143 #931 superseded itslibtmux/docspin), standalone window and pane examples (Add standalone window and pane examples #828), scrollback trim continuity evidence (capture(test[continuity]) Document ambiguous repeated scrollback #808, Investigate libtmux-side trim detection for scrollback consumers #671), and rendered-output test readiness (tests(fix): Wait for rendered pane output #837, Intermittent / flaky test test_capture_pane #484).
Planned for 0.72.0, deprecation wave (FutureWarning + MIGRATION tables), pane formatting, and server/session get-or-create (#925):
-
repr(pane)andstr(pane)render the stored pane ID without spawning tmux clients or raising after teardown Format pane handles using their stored ID #950 (repr(pane)launches tmux clients and can raise during teardown #945). -
FutureWarningandkill_on_exit/createdprovenance before{Session, Window, Pane}.__exit__preserves unowned handles Session/Window/Pane(feat[ctx]): Warn on unowned __enter__ #963 (Warn withFutureWarningbefore__exit__preserves unowned handles #959; prepares Session/Window/Pane(feat[ctx]): Preserve unowned handles #964 for Lifecycle roadmap: overlaps, conflicts, blockers and tmux version gates #925, Create or reuse tmux resources with explicit cleanup ownership #804, Addget_or_create_window()andget_or_create_session()helpers #916). -
FutureWarningwhen bareServer()follows a non-default$TMUXsocket Server(feat[socket]): Warn when bare Server() follows $TMUX #961 (Warn withFutureWarningwhen bareServer()follows non-default$TMUX#960; prepares Server(feat[socket]): Target default server on bare Server() #962 forServer()without a socket follows an inherited$TMUXto another server #840; unstack Keep session creation and returned handles on the selected socket #954 ontomaster), plus UTF-8 client text under an ASCII locale and per-call clientenv,cwd, and flags (Support per-call client flags, cleanenv/cwd, andspawn_client#882; unstack Keep typed tmux text in UTF-8 under an ASCII locale #953 ontomasterwithoutlibtmux.engine). - Connected-daemon
tmux 3.3acheck on commands,libtmux.common-VhelperDeprecationWarning, andFutureWarningon< 3.3alenientServer/Windowreads Server(feat[versions]): Warn on < 3.3a lenient daemon reads #965 (Warn withFutureWarningon< 3.3adaemon reads ahead ofVersionTooLow#958; prepares Server(feat[versions]): Raise VersionTooLow on < 3.3a reads #966 for Verify connectedtmuxdaemon meets the3.3aminimum before dispatch #777). - Sessionless
Server.connect_or_start()(AddServer.connect_or_start()to keep a server up with no sessions #923, extracted from Lifecycle(feat): Add server defaults and owned scopes #771),Server.private()(AddServer.private()context manager #872), and server discovery Lobby(feat): Discover local tmux servers #764 (Discover local tmux servers without starting them #924): ordered in Lifecycle roadmap: overlaps, conflicts, blockers and tmux version gates #925. -
get_or_create_window()andget_or_create_session()libtmux(feat[get_or_create]): Add window and session helpers #920 (Addget_or_create_window()andget_or_create_session()helpers #916) and created-vs-reused session ownership Track ownership when creating or reusing sessions #831 (Create or reuse tmux resources with explicit cleanup ownership #804, afternew_session()raises after creating a session in a newline path #942).
Planned for 0.73.0+, enforcement cuts, observation, optional libtmux[vt], program lifetime, and tmux version gates:
- Enforce the 0.72.0 deprecation stacks: bare
Server()targets-L defaultand isolates childenvinnew_session()Server(feat[socket]): Target default server on bare Server() #962 (Server()without a socket follows an inherited$TMUXto another server #840, stacked on Server(feat[socket]): Warn when bare Server() follows $TMUX #961),{Session, Window, Pane}.__exit__preserves unowned handles Session/Window/Pane(feat[ctx]): Preserve unowned handles #964 (Lifecycle roadmap: overlaps, conflicts, blockers and tmux version gates #925, Create or reuse tmux resources with explicit cleanup ownership #804, stacked on Session/Window/Pane(feat[ctx]): Warn on unowned __enter__ #963), and< 3.3alenientServer/Windowreads raiseVersionTooLowServer(feat[versions]): Raise VersionTooLow on < 3.3a reads #966 (Verify connectedtmuxdaemon meets the3.3aminimum before dispatch #777, stacked on Server(feat[versions]): Warn on < 3.3a lenient daemon reads #965; supersedes Support(feat): Verify connected tmux daemon meets the 3.3a minimum #779). - Optional
libtmux[vt]pane and window capture, live-Cobservation, and mode-aware input on Python3.12+overlibvt.contrib.tmuxwhile retaining the Python3.11base floor: vt(feat[libvt]): Add optional VT integration #934, tests(vt): Exercise interactive picker lifecycle #937, tests(vt): Verify captured paste state #947, Window(feat[vt]): Add multi-pane window VT capture #939 (Add optionallibtmux[vt]pane capture and live observation on Python3.12+#932, Prototypelibtmux[vt]capture,-Csync, input, and test helpers #933; settles Decide home for pure-Python VT tracker (libtmux.testvs package) #886, reconcilesTextFramesnapshotsTextFrame: Terminal UI testing primitive with pytest/syrupy integration #613, and linearizes oncelibvt 0.0.1a5tags libvt#137 and libvt#170). -
capture_panehardening and observation (Bullet proofing forcapture_pane#456): Retain immutable pane capture observations #810 (Snapshot / frame dataclass #370), Add bounded visible-text presence and absence waits #829 (Wait for visible text, future output, or cooperative completion with explicit evidence #673, Waiter v3.0: Requirements #584), and Add Pane.capture_since() for cursor-based incremental pane reads #741 or Capture retained history with counter-backed cursors #832 (feature: upstream capture_since #740), plus byte, surface, cell, andPaneSetobservation tracks (Observe pane output as bytes with explicit subscription gaps #800, Add sampledsurface_streamframes with explicit resets #801, Expose typed cell captures for qualified tmux export formats #802, AddPaneSetoperations with per-target outcomes #803,record(),.stop(): capture and for object info #420). - Preserve explicit program arguments Preserve explicit program arguments across launches #830 (Preserve program arguments when creating or respawning panes #822), own launched pane programs session(feat): Track fresh program lifetimes #833 (Own a launched pane program through completion and cleanup #823), wait for unowned panes (Add
Pane.wait()to wait for exit of an existing unowned pane #869), and session leases (Qualify token-fenced leases for owned tmux sessions #805). - Public capability reporting (Package
capabilities.jsonin distributions and exposeServer.capabilities()#871) and daemon-side optional feature admission Support(fix): Gate unsafe optional tmux features #780 (Gate unsafe optional tmux features independently #778), drafts (baselineTMUX_MIN_VERSION = "3.3a"and capability table shipped in0.65.0via Capabilities(feat): Gate tmux features from one table #887, tmux(feat[minimum]): Require tmux 3.3a #888; connected-daemon3.3acheck staged in Server(feat[versions]): Warn on < 3.3a lenient daemon reads #965 -> Server(feat[versions]): Raise VersionTooLow on < 3.3a reads #966). - Exact session-name matching by default (Default
Server.kill_session(),switch_client(), andattach_session()toexact=True#839) andcheck_name=Falsesession names (Allowcheck_name=Falsesession names and-t ""inObj.cmd()#885). - Remaining shell-interoperability tests (Tests: Improve shell interoperability #577, Intermittent / flaky test test_capture_pane #484; environment tests fixed by tests(Session,Window): Wait for the shell before reading env output #922, rendered-output wait in tests(fix): Wait for rendered pane output #837).
- Duplicate
-tincmd()(Duplicate-tincmd()#670). - Remaining
tmux 3.4–3.6Objformat tokens (Add remainingtmux 3.4–3.6Objformat tokens #927, split from Duplicate-tincmd()#670) andtmux 3.6–3.9wrappers and tokens (Addtmux 3.8formats, modalnew-paneflags,-E, and JSON layouts #874, Exposetmux 3.8monitor hooks (set-hook -B/-T/-E) andwait-for -E#875, Supportcapture-pane -Iline timestamps inPane.capture_pane#876, Adopttmux 3.9-devnativeOSC 7501program status (pane_program_*) #877). - Per-client active pane for
Client.attached_pane(Per-client active-pane resolution for Client.attached_pane #675). - Error contract for
display_message(Predictable error contract for display_message wrappers #676). - Remaining
Serverlist-error consistency andEnvironmentMixinerrors (Serverliveness, list error handling, andEnvironmentMixinerrors #704;has_session_stricttracked for0.71.0). - Format-string quoting under msys2 (Add quotes around format strings for compatibility with msys2 (git bash) #745).
- Gate removed
popup-*options (Gate removedpopup-*options on< 3.9and addtmux 3.9-devtokens #878). - The 3.4
split-window -pregression andcopy_mode(page_down=True)in the capability table (Gatesplit-window -p(3.4) andcopy_mode(page_down=True)(3.5) in the capability table #911). - Pure-Python workspace resurrect (Add pure Python resurrect APIs #703) and public typed option catalogs (Options: Typed structures #518).
Planned last (0.74.0+), engine seam, async dispatch, and transport operations:
- Raw-byte
libtmux.engineseam Engine(feat): Add raw-byte libtmux.engine seam and capabilities #739 (Design typed operations and engines #688, Operationalize typed operations and engines (follow-up to #688) #689, Add raw-bytestdin/stdoutwrappers for buffers, config, and panes #881; align_run_popen_requestandControlModeEnginetimeout non-replay with Command(feat[timeout]): Bound commands, waits, and listings #807'sTmuxCommandTimeoutcontract, and fold in privatemasteradapters landed in0.71.0–0.72.0). -
libtmux.aioand offlineReplayEnginetapes Aio(feat): Addlibtmux.aioand offlineReplayEnginetapes #738 (Asyncio: bake into server? #421, Operationalize typed operations and engines (follow-up to #688) #689;AsyncSubprocessEnginepipe-safe reaping), plusAsyncServer.wait_fortask-cancel reaping andtmux 3.8wait-for -l/-wchannel inspection (ReapAsyncServer.wait_foron task cancel and exposetmux 3.8wait-for -l/-w#870). - Caller-supplied
ExecEnginetransports (Run tmux commands through a caller-supplied transport (docker exec,ssh, sandbox exec) #841),ControlClientsubscriptions and hook-safe guards (AddControlClientwith%subscription-changedand hook-safe guards #884), raw-byte buffer/config/pane I/O wrappers (Add raw-bytestdin/stdoutwrappers for buffers, config, and panes #881, AddPane.paste_text()via stdinload-buffer -andpaste-buffer#867), and typed command chains (Typed command descriptors for native tmux command chains #683).
Activity
[-]Roadmap: the fix queue after libtmux 0.63.0[/-][+]0.63.x & 0.64 Roadmap[/+][-]0.63.x & 0.64 Roadmap[/-][+]0.63.x and beyond Roadmap[/+]tony commentedon Nov 21, 2026
The 15 fixes listed for 0.64.0 are merged into master, each as its own merge commit, and master's CI passed on the last one. The 0.64.x section of
CHANGEShas an entry for each, under What's new, Fixes, Documentation and Development.Notes from the merges:
send_keystext that starts with-) merged without its commit that madesend_keysandenterraise on a tmux error. That raise changes what working callers see, so it stays in tmux(fix[errors]): Raise TmuxObjectDoesNotExist for a closed target #902 for 0.67.0; the description of Pane(fix[send_keys]): Send text that starts with a dash #892 says so.send_keys(hex_keys=True)sends every byte) and Pane(fix[send_keys]): Send text that starts with a dash #892 changed the samesend_keysline. The merged code keeps both:"--", *keys. tmux 3.8a, 3.3a and 3.2a accept--before hex bytes.;passed as data) overlapped the--changes from tmux(fix[args]): Treat values that start with a dash as data #893, Pane(fix[send_keys]): Send text that starts with a dash #892 and Pane(fix[send_keys]): Send each hex byte as its own argument #894 in five files. Each resolved line keeps both the--and the escaping, and its tests pass on tmux 3.8a, 3.3a and 3.2a.SocketPathTooLong, planned for 0.65.0) is rebased onto master now that Resolve the socket path in Server's repr instead of hard-coding /tmp #727 is merged, with itsCHANGESentry regenerated. It is not merged.The list above now ticks the 15 merged items and points the
send_keysraise at #902. #240, #726, #706 and #715 are closed with a reference to the pull request that fixed each.tony commentedon Nov 24, 2026
Milestones 0.68.0 and 0.69.0 now hold the open items listed in those two sections.
An ordering note from #925: #920 (0.68.0) returns sessions it reuses, and
Session.__exit__kills any session it finds, sowith server.get_or_create_session(...)would kill an existing session; #728 (0.69.0) leaves session teardown as it is. #923 (Server.connect_or_start()) also needs #728 first, sinceServer.__exit__kills any live server.