Repository navigation
Let Lua callers select tmux from PATH - #179
Merged
Merged
Conversation
This was referenced Dec 5, 2026
why: A caller starting a tmux server should be able to use the executable on its PATH and still select an exact binary when needed. what: - Resolve the program before spawning tmux and update library callers, tests and examples to use the public selection rule.
why: A caller starting a tmux server should be able to use the executable on its PATH and still select an exact binary when needed. what: - Record the change under Unreleased.
tony
force-pushed
the
path-discovery-current
branch
from
December 6, 2026 14:22
0eb59ce to
7651143
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
A caller starting a tmux server should be able to use the executable on its PATH and still select an exact binary when needed.
connect,start_server, andwith_serverdefault to the first executabletmuxon the caller’sPATH. Pass an absolutebinaryto select a specific build. Useruntime:find_tmux():await()to get the selected path without starting a process. If the search finds no executable, the request returnsinvalid_endpoint.Test plan
luajit scripts/check/check.lua unit --lua .cache/toolchains/lua-5.5.1/bin/lua --nvim .cache/toolchains/nvim-0.12.5/bin/nvimluajit scripts/check/check.lua integration server --lua .cache/toolchains/lua-5.5.1/bin/lua --nvim .cache/toolchains/nvim-0.12.5/bin/nvim(0.61 seconds on Linux ARM64)luajit scripts/check/check.lua docs --lua .cache/toolchains/lua-5.5.1/bin/lua --nvim .cache/toolchains/nvim-0.12.5/bin/nvimCloses #109.