Repository navigation
Description
Summary
The command-ownership test sometimes sees an empty healthy pane although its control client reached the live phase. The fixture starts a process that writes a colored startup marker. Starting that process and receiving its initial redraw are separate events.
Reproduction
- In a checkout of the reviewed head, repeat the pause case using tmux 3.8.
for attempt in $(seq 1 30); do
uv run pytest -q 'tests/test_tmux.py::test_tmux_shared_client_command_error_leaves_other_pane_live[False-pause]' || break
doneExpected
The healthy pane has rendered its startup text when the routing test begins. The test can then check that an error from removing the other pane leaves the healthy pane's rows, cursor and SGR color intact.
Actual
An untouched checkout passed nine times and then failed with an empty first row where the test expected READY中. Delaying the fixture process's first write by 0.4 seconds reproduced the same assertion on the source PR. That delay is only a diagnostic control.
Environment
Local test environment
Linux aarch64, CPython 3.15.2, mise-tmux 3.8, omnibus 4c0bf02 and source PR 4b300fd.
References
#161 adds the shared-client test for #75. A bounded native capture-pane check at fixture startup makes pane readiness observable before the control commands are sent.
Activity
tony commentedon Dec 5, 2026
Verified fixed on
master(d087b05, shipped inv0.0.1a6via #161 /6c86350), which adds a bounded nativecapture-panereadiness wait forREADY中before sending control commands. Stress testtest_tmux_shared_client_command_error_leaves_other_pane_live[False-pause]passed 30/30 on tmux 3.4 and 10/10 on mise-tmux 3.8.