Repository navigation
Close tmuxinator parity gaps in tmux and Herdr backends - #19
Merged
Merged
Conversation
Generated tmux scripts targeted sessions and windows by name, so a project could start or stop the wrong session (prefix matches such as work vs work-api) and duplicate, numeric or dotted window names broke the build. Several start failures were fatal where tmuxinator carries on, and others were silently masked. - Target sessions exactly (=name) and windows/panes by index, honouring base-index and pane-base-index; sanitise . and : in session names. - Run hooks from the project root without strict mode; abort only when the session or a window cannot be created, record other tmux failures and exit non-zero once the session is built. - Retry session creation once and make start-server best-effort, so a start straight after stopping the server's last session does not fail. - Resolve relative project roots once, before any cd, in all backends; join relative window roots onto the project root; keep ~user expansion. - Fall back to pane 0 for invalid focused_pane and startup_pane; focus the first pane by default; scope pane-title options to each window. - Guard stop behind has-session, escape a trailing ; in send-keys, append to the current session without attaching, and stop only mux project sessions in stop-all (including tmux_options sockets). - Look up projects across all config directories, subdirectories and .yaml; restrict implode to the confirmed directory. - Evaluate templates without CLI settings, honour YAML 1.1 booleans, ignore ~/null window commands and require a project name. - Add --attach/--no-attach, --no-pre-window, new --local, flags after the project name, local-file fallback and multi-project delete; fix fish completion and the reported version. - Move CLI handling into src/app.c for testing, wire the integration suites into meson and run tmux and sanitizer builds in CI.
macOS links /tmp and /var into /private, so paths that mux resolves through getcwd() did not match the mktemp paths the tests expected. Compare against the physical paths, and restore the working directory after every script test so one failure cannot break fixture lookups in later tests.
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.
What?
=name) and windows/panes by index, so a project no longer starts or stops a prefix-matched session (workvswork-api), and duplicate, numeric or dotted window names build correctly.and:in session names to_, and require a projectnamestart-serveras best-effort, somux stop a && mux start bdoesn't fail while the tmux server is shutting downroot: appcould resolve toapp/app), join relative window roots onto the project root, and keep~userexpansionfocused_pane/startup_pane, focus the first pane by default, and set pane-title options per window rather than globallystopexit 0 when the session isn't running, escape a trailing;in pane commands, runon_project_restartin theherdrbackend--appendadds to the current session and never attaches;stop-allstops only mux project sessions (includingtmux_optionssockets) instead ofkill-server.yaml;implodedeletes only from the directory it asks you to confirm@argsandENV), honour YAML 1.1 booleans, ignore~/nullwindow commands--attach/--no-attach,--no-pre-window,new --local, flags after the project name,./.tmuxinator.ymlfallback and multi-project delete; fix fish completion and the reported versionsrc/app.cso it can be tested, wire the integration suites into meson, and install tmux plus run a sanitizer build in CIWhy?
A review against upstream tmuxinator, run on an isolated real tmux server, found configs that started or stopped the wrong session, failed partway through, or behaved differently from tmuxinator. The unit tests only compared generated script text, so none of this was caught.