You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Flaky test: test_capture_pane_flags[join_wrapped_numbers] matches marker in command echo #654
test_capture_pane_flags[join_wrapped_numbers] fails intermittently because the completion marker is detected in the shell command echo line before the command actually executes.
This matches the marker string inside the prompt echo ($ printf ... echo "__DONE_join_wrapped_numbers__") — a false positive. The shell echoes the full command before executing it, so the marker appears in the pane buffer before seq produces any output.
Expected behavior
The marker should only be detected when it appears as command output (its own line), not as part of the typed command echo.
Fix
Change the check to skip lines that start with the shell prompt ($):
The failure is timing-dependent. On fast systems seq completes before the next capture, masking the bug. On slower systems or CI, the race is more visible.
Activity
fix(tests): fix flaky test_capture_pane_flags[join_wrapped_numbers]
fix(tests): fix flaky test_capture_pane_flags[join_wrapped_numbers]
fix(tests): fix flaky test_capture_pane_flags[join_wrapped_numbers]
fix(tests): fix flaky test_capture_pane_flags[join_wrapped_numbers]
fix(tests): fix flaky test_capture_pane_flags[join_wrapped_numbers]
fix(tests): fix flaky test_capture_pane_flags[join_wrapped_numbers]