Repository navigation
Description
Summary
A verification pass over v0.1.0alpha3 (26c7bbe) found fixes that no open PR or issue covers. Nested tmux commands bypass the raw-command gate and kill the daemon on exact tmux 3.7, the exact-release option tables refuse every tmux release they do not list, and the release body, the manifest wording and the standalone install path each leave an adopter guessing. These matter because the library's pitch is that refusals fire before dispatch.
Must-have fixes
- The raw-command gate does not read nested command text, and the limit is described only in prose.
docs/commands.mdlines 29-34 says the nested copy "reaches tmux unchecked", but not which releases, which commands, or what failure class. Evidence: on exact tmux 3.7 with two panes,server:command({"if-shell","-F","1","break-pane -d"})andserver:command({"run-shell","-C","break-pane -d"})both returned exit 1 and the daemon was dead afterwards, while plainbreak-pane -dandbreakp -dwere refused withunsupportedandeffect = "not_sent". tmux 3.8 passed the same forms through with the daemon alive. Fix, as the documentation item below: state the limit precisely and pin it with a test. Gating nested text (parsingif-shell,run-shell -Cand brace blocks with the command resolver) was researched and is not recommended: it needs a second tokenizer that matches tmux's string grammar (newline separators, escapes, aliases) and still cannot see key bindings or hooks. - The public capability manifest distinguishes a refused raw command from a repair made by
Pane:break_out. The Lua capability and feature suites passed all 18 tests at2b12cea8. Merged fix #53 · Generated manifest. - Keep option and hook lookup exact for the tmux version the server reports. For a release absent from the catalog, return
unsupported_versionand tell the caller that its settings are unknown. The 3.8 lookup returned 183 option names in QA. Maintainer decision · Implementation and tests in #184. - The October alpha release description lists the tmux 3.3a minimum for libtmux and the tmux 3.7 minimum for live pane output. It links to the changelog for the tagged source.
- Keep the standalone
luvsetup instructions when updating the calculator quick start. Master lists the build tools for Debian and Ubuntu, Fedora, and macOS, plus thelua-luvfallback for the distribution’s Lua. The revised Calculator guide keeps those prerequisites. The private numbered rock also ran the calculator with Ubuntu's distribution Lua andlua-luv. The public install is tracked in README quick start callsRuntime:start_server, which the published rock lacks #108. Original setup fix #52 · Calculator PR #151.
Documentation item: the nested-command limit
Document the limit precisely in docs/commands.md and link it from the README Support section.
- Applies to: a refused command written inside another command's argument, such as
if-shell -F 1 'break-pane -d'orrun-shell -C 'break-pane -d'. tmux also reads nested text from key bindings and hooks, which the library never sees. - Releases and failure class:
break-panewithout-non exactly 3.7 kills the daemon (crash);select-layoutwith an invalid layout string kills 3.3 and 3.3a (crash);refresh-client -lcan kill the daemon below 3.6a only when an attached terminal does not answer (crash);delete-buffer -b NAMEbelow 3.4 acts on the newest buffer when the name does not exist (wrong buffer);split-window -pon 3.4 and a:or.in a name on 3.7 get tmux's own error (error). - Advice: on exact tmux 3.7, name every
break-panewith-n; upgrade to 3.7a, which fixes the crash. - Test: pin the limit with a case that uses a nested form tmux accepts,
if-shell -F 1 'break-pane -d', not{ break-pane }, which tmux rejects with "syntax error". On exact 3.7 the nested form must reach tmux unchecked; on 3.7a the daemon must survive; a plainbreak-pane -dmust still be refused.
Already covered
Covered by #49: the docs/compatibility.md status paragraph, the README note that observation needs tmux 3.7, and the CHANGES.md alpha3 install-pin line. The core polling wait is tracked in #50. The break-pane, split-window -p and 3.7 name refusals are present in the manifest's workarounds array and are not reported as missing.
Needs a decision
- A published MCP server:
packages/mcpis an unpublished scaffold with no tools (packages/mcp/README.md). Shipping one is the largest adoption lever for agent users but is a new package with its own support surface; a dated statement of when it ships is the cheap alternative. - Gating nested command text in the library: closes the crash for hand-written nested forms but adds a tokenizer that can disagree with tmux in both directions; the documentation item above is the recommended alternative.
Delivery of the verified items
The exact-release settings lookup and the standalone Calculator setup passed their local checks. The changes remain in the settings PR and the Calculator PR.
Activity
Fix docs and evidence the verification pass flagged (#49)
tony commentedon Oct 24, 2026
Left open from the
capabilities.jsonitem: thebreak-paneentry cannot be fixed without cutting a new release.The manifest is generated, not hand-written.
scripts/emit_capabilities.luaserializes the registry inlua/libtmux/_internal/support/capabilities.lua, wherebreak-pane-misnames-windowshashandling = "repair"andcommands = { { command = "break-pane" } }(apislists onlylibtmux.Pane:break_out).lua/libtmux/_internal/features.luareads the same entry for itsrequiredrelease, andtests/unit/capabilities.luachecks that the committed JSON equals the registry. So the source of the wrong value is inlua/, and the generator is inside the repository.The registry is a packaged module, and that is what makes this harder than predicted. I made the change (the raw command as
refusewith the raw command APIs, plus a separaterepairentry forPane:break_out, JSON regenerated, unit tests passing) and CI failed inscripts/package.py: "source rock differs from the tested checkout: libtmux-lua/lua/libtmux/_internal/support/capabilities.lua". Before a release is public, that gate packs the source rock from thev0.1.0alpha3tag (source_rockinscripts/package.py) and compares every file underlua/with the checkout, so any change underlua/fails it until the version changes.A fix needs a release decision: a new source version (for example
0.1.0alpha4-1) with the registry change, or a decision to let the package gate compare against the tag only for files the release touched. I dropped the item from the PR and did not push the change.Document the nested-command limit (#52)
Support(fix): Mark raw break-pane as refused
Support(fix): Mark raw break-pane as refused
Support(fix): Mark raw break-pane as refused
Support(fix): Mark raw break-pane as refused
Wait for pane text on every tmux release (#53)
tony commentedon Dec 5, 2026
The settings catalog will require an exact tmux release. In the Lua test, 3.8 returned 183 option names. An unlisted
3.8areturnedunsupported_versionand explained that its settings are unknown. This gives callers a defined result when a new tmux release appears.The October alpha release page now gives both requirements. The library needs tmux 3.3a or newer, and live pane output needs tmux 3.7 or newer. v0.1.0alpha3 release notes.
I installed the published
0.1.0alpha3-1rock in an empty LuaRocks tree. Connecting to tmux 3.3 returnedunsupported_version. On 3.3a the connection and snapshot worked, and requesting live output returnedunsupportedwithrequired = "3.7". On 3.7 the same request opened and closed the observer on a private server. The 3.3a minimum is recorded under alpha2 in the changelog. The alpha3 section records the newer minimum for live output. Compatibility at the tag · Control mode at the tag.The updated calculator PR restores the named build tools for standalone Lua. I also tested the Ubuntu package fallback. A shell configured for Lua 5.5 could not load Ubuntu’s
lua-luvafter switching to Lua 5.4.6. From a new terminal, installing libtmux and setting the paths with LuaRocks configured for 5.4 let the calculator print19 + 23 = 42. Tested quick start · Calculator PR #151.