Skip to content
Draft
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
1f7eeef
ai(rules[check:*,implement]) Add tmuxinator parity commands
tony Feb 8, 2026
9352627
docs(comparison) Add feature comparison table for tmuxp/tmuxinator/te…
tony Feb 8, 2026
019a7dc
notes(parity) Add tmuxinator parity analysis
tony Feb 8, 2026
ab30fad
notes(parity) Add teamocil parity analysis
tony Feb 8, 2026
2fb01ac
notes(import) Add tmuxinator import behavior analysis
tony Feb 8, 2026
7d79b84
notes(import) Add teamocil import behavior analysis
tony Feb 8, 2026
92378fe
fix(docs): Correct parity docs from verification pass
tony Feb 8, 2026
469660e
fix(comparison): Correct tmuxinator min tmux and detach flag
tony Feb 8, 2026
6ef9e88
fix(import-tmuxinator): Add missing socket_path entry
tony Feb 8, 2026
07bfd4c
fix(import-teamocil): Reclassify with_env_var and cmd_separator
tony Feb 8, 2026
821df4b
fix(comparison): Correct tmuxinator version ref and clarify details
tony Feb 8, 2026
f5a684d
fix(comparison): Annotate startup_window/startup_pane with tmuxp focu…
tony Feb 8, 2026
07e7d1a
fix(parity-docs): Correct before_script hook mapping and --here details
tony Feb 8, 2026
65861d5
fix(parity-docs): Correct line number references in teamocil notes
tony Feb 8, 2026
51d586b
fix(comparison): Correct tmuxinator min tmux, add session rename note…
tony Feb 8, 2026
30e6e9c
fix(parity-tmuxinator): Fix startup_window/pane semantics, pre_window…
tony Feb 8, 2026
13c7893
fix(parity-teamocil): Add session rename behavior, fix with_env_var/c…
tony Feb 8, 2026
5b1e499
fix(import-tmuxinator): Correct pre/pre_window semantics and cli_args…
tony Feb 8, 2026
18e5dcc
fix(import-teamocil): Mark with_env_var/cmd_separator as unverified s…
tony Feb 8, 2026
93032ff
docs(plan): Add parity implementation plan with API blockers
tony Feb 8, 2026
ae3de10
fix(plan): Correct line refs, add isinstance bug, expand T4/T8/L2 det…
tony Feb 8, 2026
6f53b62
fix(plan): Correct L1/T1/T3 details from tmux source verification
tony Feb 8, 2026
9949052
fix(plan): Correct T2 insertion points and I7 line references
tony Feb 8, 2026
d7572f9
fix(plan): Add tmux 3.2 sync scope detail and before_script limitation
tony Feb 8, 2026
abdfe5b
fix(plan): Add missing width drop note and importer update dependencies
tony Feb 8, 2026
9190b88
fix(plan): Fix phase numbering and add missing L3 to phase listing
tony Feb 8, 2026
9e53352
fix(plan): Correct L3 logging description and I2 bug example
tony Feb 8, 2026
81da1d8
docs(comparison): Update version, fix hook descriptions, add auto-det…
tony Mar 6, 2026
1d54fec
docs(parity-tmuxinator): Update version, add template execution order
tony Mar 6, 2026
351d066
docs(parity-teamocil): Update version and timestamp
tony Mar 6, 2026
ef32fc1
docs(import): Update timestamps for import behavior notes
tony Mar 6, 2026
8a1862d
docs(teamocil): Verify v0.x features from 0.4-stable branch
tony Mar 6, 2026
4ef7e66
docs(comparison): Add teamocil v0.x pane sizing keys
tony Mar 6, 2026
dbcf033
docs(comparison): Refine auto-detection algorithm with v0.x fallback
tony Mar 6, 2026
0325917
docs(import-teamocil): Document accidental focus/target passthrough
tony Mar 6, 2026
8e09d33
docs(parity-teamocil): Add accidental v0.x focus/target passthrough
tony Mar 6, 2026
cf7f653
docs(comparison): Fix pre-build script and deprecated hook mappings
tony Mar 6, 2026
05da730
docs(import-tmuxinator): Document pre→before_script semantic bug
tony Mar 6, 2026
465bfe0
docs(parity-tmuxinator): Add pre→before_script scope bug to importer …
tony Mar 6, 2026
139f586
docs(plan): Add solo pre→before_script scope bug and update I1 analysis
tony Mar 7, 2026
edbe290
docs(plan): Expand L4 APIs, fix I7 stale claim, add height/with_env_v…
tony Mar 7, 2026
9edd210
docs(plan): Add missing post and target keys from parity cross-reference
tony Mar 7, 2026
e361187
docs(comparison): Add synchronize deprecation, pane shell_command_bef…
tony Mar 7, 2026
8cb29ee
docs(parity-tmuxinator): Add synchronize deprecation and pane_title_f…
tony Mar 7, 2026
6c6f946
docs(parity-teamocil): Add v1.0 rewrite context from README
tony Mar 7, 2026
bf4238b
docs(import-tmuxinator): Note synchronize deprecation in summary table
tony Mar 7, 2026
20403ed
docs(import-teamocil): Update date after source verification
tony Mar 7, 2026
369aaed
docs(plan): Add synchronize deprecation context to T1
tony Mar 7, 2026
3588e0e
docs(plan): Fix accuracy issues from issue #1016 review
tony Mar 7, 2026
b5bc185
docs(parity-tmuxinator): Fix fallback order, add missing CLI details
tony Mar 7, 2026
c2f6256
docs(parity-teamocil): Add layout-per-pane behavior and path expansion
tony Mar 7, 2026
88a1b1c
docs(plan): Add test coverage gaps section from fixture analysis
tony Mar 7, 2026
560fa33
docs(import-tmuxinator): Add YAML aliases and numeric/emoji name find…
tony Mar 7, 2026
ca74e75
docs(notes[plan]): Mark L1/L2/L3 resolved, fix stale line numbers, re…
tony Mar 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs(plan): Add solo pre→before_script scope bug and update I1 analysis
why: Fresh parity analysis (2026-03-06) found a second bug in the
tmuxinator pre key mapping not previously documented in the plan.
what:
- Add Bug A: solo pre maps to shell_command_before (per-pane) instead
  of before_script (session-level)
- Clarify existing Bug B with dead config keys table cross-reference
- Document before_script shell limitation (no shell=True in Popen)
- Update plan date to 2026-03-06
  • Loading branch information
tony committed Mar 21, 2026
commit 139f5868588bca6f44b21cc5db42e1c097efdfc9
28 changes: 22 additions & 6 deletions notes/plan.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Parity Implementation Plan

*Last updated: 2026-02-08*
*Last updated: 2026-03-06*
*Based on: parity-tmuxinator.md, parity-teamocil.md, import-tmuxinator.md, import-teamocil.md*

## libtmux Limitations
Expand Down Expand Up @@ -140,21 +140,37 @@ Keys produced by importers but silently ignored by the builder:

| Key | Producer | Importer Line | Builder Handling | Issue |
|---|---|---|---|---|
| `shell_command` (session-level) | tmuxinator importer | `importers.py:60` | Not a valid session key | **Bug**: `pre` commands lost when both `pre` and `pre_window` exist |
| `shell_command` (session-level) | tmuxinator importer | `importers.py:60` | Not a valid session key | **Bug** (I1 Bug B): `pre` commands lost when both `pre` and `pre_window` exist |
| `config` | tmuxinator importer | `importers.py:37,44` | Never read | Dead data — extracted `-f` path goes nowhere |
| `socket_name` | tmuxinator importer | `importers.py:52` | Never read | Dead data — CLI uses `-L` flag |
| `clear` | teamocil importer | `importers.py:141` | Never read | Dead data — tmuxp has no clear support |
| `shell_command_after` | teamocil importer | `importers.py:149` | Never read | Dead data — tmuxp has no after-command support |

## Importer Bugs (No Builder Changes Needed)

### I1. tmuxinator `pre` + `pre_window` Mapping Bug
### I1. tmuxinator `pre` / `pre_window` Mapping Bugs

Two bugs in `importers.py:59-70`, covering both code paths for the `pre` key:

#### Bug A: Solo `pre` maps to wrong key (NEW — 2026-03-06)

- **Bug**: When only `pre` exists (no `pre_window`) (`importers.py:66-70`), it maps to `shell_command_before` — a per-pane key that runs before each pane's commands. But tmuxinator's `pre` is a session-level hook that runs **once** before any windows are created. The correct target is `before_script`.
- **Effect**: Instead of running once at session start, the `pre` commands run N times (once per pane) as pane setup commands. This changes both the semantics (pre-session → per-pane) and the execution count.

#### Bug B: Combo `pre` + `pre_window` loses `pre` commands

- **Bug**: When both `pre` and `pre_window` exist (`importers.py:59-65`):
1. `pre` maps to `shell_command` (line 60) — invalid session-level key, silently ignored by builder. The `pre` commands are lost.
1. `pre` maps to `shell_command` (line 60) — invalid session-level key, silently ignored by builder. The `pre` commands are lost entirely (see Dead Config Keys table).
2. The `isinstance` check on line 62 tests `workspace_dict["pre"]` type to decide how to wrap `workspace_dict["pre_window"]` — it should check `pre_window`'s type, not `pre`'s. If `pre` is a list but `pre_window` is a string, `pre_window` won't be wrapped in a list.
- **Correct mapping**: `pre` → `before_script` (session-level, runs once before windows). `pre_window` → `shell_command_before` (per-pane).
- **Note**: `before_script` expects a file path or command (executed via `subprocess.Popen` after `shlex.split()` in `util.py:27-32`), not inline shell commands. For inline commands, either write a temp script, or add an `on_project_start` config key (T6).

#### Correct mapping

- `pre` → `before_script` (session-level, runs once before windows)
- `pre_window` → `shell_command_before` (per-pane, runs before each pane's commands)

#### `before_script` shell limitation

`before_script` is executed via `subprocess.Popen` after `shlex.split()` in `util.py:27-32` — **without `shell=True`**. This means shell constructs (pipes `|`, `&&`, redirects `>`, subshells `$(...)`) won't work in `before_script` values. For inline shell commands, the forward path is the `on_project_start` config key (T6), which would use `shell=True` or write a temp script.

### I2. tmuxinator `cli_args` / `tmux_options` Fragile Parsing

Expand Down