Skip to content

Let tmux choose the default command on creation - #186

Merged
tony merged 2 commits into
masterfrom
fix-121-default-shell
Dec 5, 2026
Merged

tony merged 2 commits into
masterfrom
fix-121-default-shell

Conversation

@tony

@tony tony commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Closes #121

What changed, and why:

Creating a session, window or pane required an explicit command even when the caller wanted the daemon's configured default. The required keywords also prevented automatic naming. Build the native creation arguments from the options supplied. Forward omissions through entity methods and update signatures and help text. Keep the separate respawn command requirement.

Checks run:

  • The original split example printed an empty capture with a login program that did not interpret POSIX shell input. The example now runs its command with /bin/sh and uses the native default for the second pane. With SHELL=/bin/cat and LC_ALL=C, the focused tmux 3.3a test verified the accented capture and the 20-column split.
  • The base rejected omitted keywords. Native readback verifies the configured default command, auto-generated names and literal arguments. The negative respawn case still rejects an omitted command.
  • The focused check passed on tmux 3.8 (2 runs, 36 assertions). On Linux with Ruby 4.0.7 and tmux 3.8, the unit and lint checks passed in 27.27 s. The full outer check passed in 137.84 s, including installed gems and documentation, with zero skips.

Tool use:

Codex traced the caller and owner, checked the previous behavior and ran the Linux tests.

@tony
tony force-pushed the fix-121-default-shell branch 2 times, most recently from a64f51e to 8211fd3 Compare December 5, 2026 11:14
tony added 2 commits December 5, 2026 05:29
why:
Creating a session, window or pane required an explicit command even
when the caller wanted the daemon's configured default. The required
keywords also prevented automatic naming.

what:
Build the native creation arguments from the options supplied. Forward
omissions through entity methods and update signatures and help text.
Keep the separate respawn command requirement.
why:
Readers need to find the change in the unreleased notes.

what:
Session, window and pane creation can run the daemon's configured
command or shell. Omit the session or window name to let tmux choose it.
@tony
tony force-pushed the fix-121-default-shell branch from 8211fd3 to ee7fc29 Compare December 5, 2026 11:32
@tony
tony marked this pull request as ready for review December 5, 2026 11:41
@tony
tony merged commit e6d76a8 into master Dec 5, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create a session, window or pane that runs the default shell

1 participant