Skip to content

Shared-client tmux test can inspect the pane before its first redraw #202

Done

Description

@tony

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

  1. 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
done

Expected

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

  1. added
    bug
    p2
    area:dev-tools
    topic:test-reliability
    python
    flaky
    topic:control-mode
    on Dec 5, 2026
  2. tony commented on Dec 5, 2026

    @tony
    ContributorAuthor

    Verified fixed on master (d087b05, shipped in v0.0.1a6 via #161 / 6c86350), which adds a bounded native capture-pane readiness wait for READY中 before sending control commands. Stress test test_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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:dev-toolsbugflakyp2pythontopic:control-modetopic:test-reliability

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions