Notable changes to libtmux.
Unreleased
libtmux 0.1.3 (2026-11-21)
Fixed
- Finish the release job once Hex accepts the package and documentation. When approval is required, the job log links to the staged release so maintainers can approve it later. (#100)
libtmux 0.1.2 (2026-11-21)
Added
- Start a private tmux server with
LibTmux.Server.start/1and stop it withLibTmux.Server.stop/2. The server runs in a mode-700 directory below:root, with a privateTMUX_TMPDIR, no inheritedTMUXorTMUX_PANEand an empty configuration by default.start/1returns once the socket answers. The process that starts it owns it: the server stops when that process exits, even if the VM is killed.stop/2removes the directory and keeps it when the server still answers. It refuses a Server thatnew/1built. (#82) - Run a function against a private server with
LibTmux.Server.with_owned/2, which starts the server, calls the function and stops the server afterward. A failing stop never replaces an exception the function raised. Examples and tests no longer needSystem.cmd, a shell preamble or a Python launcher to start tmux. (#85) - Kill what a program created with
LibTmux.Server.kill/2,LibTmux.Session.kill/3,LibTmux.Window.kill/3andLibTmux.Pane.kill/3, each with a bang variant. They run one-shot; a Control connection returnsunsupported_transportbefore any I/O. (#76)
Changed
- Behavior change:
LibTmux.Server.t/0has a:daemonfield,nilunlessLibTmux.Server.start/1created the Server. Code that matches a Server with every field must name it. (#82)
libtmux 0.1.1 (2026-11-01)
Added
- Select a tmux server by name with the
:socket_nameoption ofLibTmux.Server.new/1, which passes-L. Pass it instead of:socket, never beside it. (#51)
Changed
- Behavior change:
LibTmux.Server.new/1no longer requires:socket. With neither:socketnor:socket_name, it readsLIBTMUX_SOCKET_PATH(-S), thenLIBTMUX_SOCKET(-L), from:env, and passes tmux no socket when neither is set. tmux then follows the serverTMUXnames when the program runs inside tmux, and uses its default socket otherwise. A missing:socketraisedKeyErrorbefore. An explicit:socketor:socket_nameignores both variables, an empty variable counts as unset, and an invalid one, such as a name that is.or.., raisesArgumentErrorthat names it. A Server with no socket keepsTMUXandTMUX_PANEin the environment it gives tmux, for one-shot execution and control connections alike; a Server with a chosen socket still removes both, and no option ofLibTmux.Server.run/3changes that. LeaveTMUXout of:envto send a Server with no socket to the default socket. Control connections accept a Server with a socket name or no socket. (#51)
libtmux 0.1.0 (2026-10-25)
Added
- Create named detached sessions and windows on an existing server with
Server.new_session/3andSession.new_window/4. These one-shot actions return the created ID; capture again for a bound reference. (#37)
Changed
Session.windows/2,Session.panes/2andWindow.panes/2now return selections for filtering and checked cardinality. UseEnum.to_list/1when a list is needed. (#36)- Number releases
0.1.Nfrom0.1.0, with no-alphatag unless the maintainer asks for one. Any release may change or remove exported identifiers, and the changelog marks each break, so pin an exact version to avoid one.
Fixed
- Scalar predicates returned by
LibTmux.Filter.to_predicate/2now raise a coverage error for missing referenced fields before Boolean evaluation. (#35)
libtmux 0.0.1-alpha.4 (2026-10-25)
Added
- Inspect control-connection failures with
LibTmux.Control.status/1, including the close reason and captured stderr. (#23)
Changed
- Nonbang domain actions now report success only for completed commands. Match failures as errors; their execution evidence remains available. (#23)
- Send up to 995 literal bytes through either transport. This fixes one-shot input above 246 bytes and replaces the documented 1,020-byte limit. (#23)
- Capture full snapshots with fewer tmux processes. Tight byte and command budgets may need adjustment. (#23)
Fixed
- Reject oversized one-shot action requests before contacting tmux and return validation errors callers can inspect. (#23)
- Reject inconsistent inputs to
LibTmux.Filter.to_predicate/2when the filter uses relationships. Prepare against each new snapshot or useLibTmux.Selection.where/2. (#28)
Documentation
- Follow an executable application-supervision recipe for replacement connections and recovery after failure. (#23)
Development
- Retry transient HexDocs availability failures after successful package publication, before checking an installed consumer. (#23)
- Detect stale schema reference pages and exercise packaged supervision examples in CI. (#23)
libtmux 0.0.1-alpha.3 (2026-10-24)
Documentation
- Follow README examples for capture, filtering, window renaming and pane input, with explicit aliases and links to the published API reference. Keep fixture setup and cleanup outside the task snippets. (#14)
Development
- Check README, filtering and API-reference examples in CI, including real tmux execution, packaged consumers and owned-process cleanup. Detect drift between displayed snippets and their executable sources. (#14)
libtmux 0.0.1-alpha.2 (2026-10-24)
Added
- Execute routine commands with
LibTmux.Control.execute/3without manually reclaiming completed operations.LibTmux.Control.with_connection/2owns connection setup and cleanup around a callback. (#9) - Split panes, rename sessions and windows, send text or named keys, and capture pane contents through domain functions. (#9)
- Build references from captured observations with
LibTmux.Ref.from_observation/1. Qualified-control splits return the created pane ID and a bound reference for follow-up actions. (#11) - Traverse captured session windows and panes with named helpers in
LibTmux.SessionandLibTmux.Window, without contacting tmux. (#11)
Changed
- Capture larger servers with fewer tmux commands and query relationships without repeatedly validating the captured graph. Direct relationship lookups report ambiguity only for the requested objects. (#9)
- Choose split command intent explicitly: session defaults, an empty pane, shell text or an argument vector. Argument vectors keep their meaning when arguments are added or removed. (#11)
- Get completed values directly from domain bang actions. Unsuccessful
outcomes raise
LibTmux.Action.CompletionErrorwith the original evidence; ordinary actions retain outcomes for inspection. (#11) - Report invalid action inputs with their paths and accepted forms, without retaining rejected values in diagnostic details. (#11)
Fixed
- Preserve
nilwhen tmux reports an absent pane PID. (#11) - Reject malformed external filter arrays within the configured limits. (#11)
Documentation
- Follow separate guides for capture, one-shot actions, managed control and retained operations, with executable examples for each workflow. (#9)
- Add
examples/quickstart.exs, a script that starts a private tmux server, captures it and prints its window and pane counts. (#7) - Document
LibTmux.Snapshot.indexes/0as an opaque type. TheLibTmux.Snapshot.t/0reference now links it instead of printing the name as plain text. (#8) - Handle uncertain execution and cleanup failures with a complete recovery example; use focused reference examples for cardinality and relationships. (#11)
Development
- Include this changelog in the Hex package and ExDoc reference. (#9)
- Fail
scripts/check_public_contracts.exsandmix testwhen a public type, spec or callback names a private type, which the generated reference cannot link. (#8)
libtmux 0.0.1-alpha.1 (2026-10-21)
Added
- Capture sessions, windows, panes, clients and linked-window membership as immutable snapshots. Reuse observations without further tmux commands. (#2)
- Select captured objects with
Enum, native predicates, checked cardinality and relationship filters. Share portable filters through versioned JSON. (#2) - Run Linux one-shot commands with deadlines, output limits and partial-output errors. Metadata reads do not attach a client or create a session. (#2)
- Open experimental control connections to existing sessions. Submit requests, await retained operation results and reconnect explicitly without replaying mutations. (#2)
Documentation
- Add an ExDoc API reference, public type documentation and field and relationship guides. A complete example captures panes, selects them locally and reads through one-shot and control connections. (#2)
Development
- Build the Linux I/O helper through Mix with a C11 compiler. The core has no third-party runtime dependencies or NIF. (#2)
- Check tmux 3.3, 3.3a, 3.4 and 3.8 in Linux CI and exercise the packed core outside the checkout. (#2)
- Publish the core package and ExDoc documentation to Hex from matching version tags after the required Linux checks pass. (#2)