[codex] Make tmux a reproducible Codex-ready config#7
Merged
Conversation
Track the tmux config and teach the installer to link it, bootstrap TPM, and leave TPM-managed plugin checkouts outside Git. The same change preserves Codex multiline input through Ghostty and tmux by using CSI-u Shift+Enter and a Codex keymap override, while pairing tmux navigation with Neovim mappings. Constraint: TPM installs nested Git repositories under tmux/plugins, so that path must remain ignored rather than committed.\nRejected: Commit TPM plugins as submodules | TPM is already the plugin manager and submodules would duplicate ownership.\nRejected: Rely only on terminal feature negotiation for Shift+Enter | Ghostty restart still did not make Codex see multiline input reliably.\nConfidence: high\nScope-risk: moderate\nDirective: Do not track tmux/plugins; it is an install cache owned by TPM.\nTested: make check\nNot-tested: Live TPM network clone on a fresh machine; Bats covers bootstrap with a fake git clone. Co-authored-by: OmX <omx@oh-my-codex.dev>
tmux mouse mode was intercepting hyperlink clicks before Ghostty could open them. The config now advertises Ghostty hyperlink support and opens tmux-detected OSC 8 hyperlinks directly while falling back to normal pane mouse behavior, and the same change carries the requested shell startup helpers into this PR. Constraint: Mouse support must remain enabled for pane selection, scrolling, and existing tmux workflows.\nConstraint: User explicitly requested including the existing local bash/zsh edits in this commit.\nRejected: Disable tmux mouse mode | it would restore terminal URL clicking but regress tmux mouse UX.\nRejected: Leave shell helpers as separate local edits | user asked to add them to this commit.\nConfidence: medium\nScope-risk: moderate\nDirective: Keep non-link MouseDown1Pane behavior forwarding to tmux so mouse-enabled TUIs still receive clicks.\nTested: make check\nTested: bash -n bash_profile\nTested: zsh -n zshrc\nTested: tmux source-file tmux/tmux.conf\nTested: ghostty +validate-config --config-file=ghostty/config\nNot-tested: Manual click of an OSC 8 hyperlink after opening a fresh Ghostty window. Co-authored-by: OmX <omx@oh-my-codex.dev>
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
~/.config/tmux/plugins/tpmwhile keeping TPM-managed plugin checkouts ignored by Git.Root cause
TPM plugin clones were being staged as embedded Git repositories because
tmux/plugins/was not ignored. Shift+Enter was collapsing before Codex could treat it aseditor.insert_newline, so Ghostty and tmux needed an explicit CSI-u path. URL clicks were also blocked by tmux mouse handling and missing hyperlink feature negotiation for Ghostty.Validation
make checkgit diff --cached --checkbash -n bash_profilezsh -n zshrctmux source-file tmux/tmux.confghostty +validate-config --config-file=ghostty/configNotes
The real TPM network clone on a fresh machine is not exercised by the tests; Bats covers the bootstrap path with a fake
git clone. Manual clicking of a fresh OSC 8 hyperlink after a full terminal restart is not covered by automation.