Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ $ uvx --from 'libtmux' --prerelease allow python
_Notes on the upcoming release will go here._
<!-- END PLACEHOLDER - ADD NEW CHANGELOG ENTRIES BELOW THIS LINE -->

### Bug fixes

- Fix flaky `test_capture_pane_flags[join_wrapped_numbers]` — marker detection now
skips the shell command echo line to avoid false-positive completion (#655)

## libtmux 0.55.0 (2026-03-07)

### What's new
Expand Down
8 changes: 5 additions & 3 deletions tests/test_pane_capture_pane.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,12 @@ def prompt_ready() -> bool:
full_command = f'{command}; echo "{marker}"'
pane.send_keys(full_command, literal=False, suppress_history=False)

# Wait for marker to appear
# Wait for marker to appear as command output (not in the command echo line)
def command_complete() -> bool:
output = "\n".join(pane.capture_pane())
return marker in output
lines = pane.capture_pane()
return any(
marker in line and not line.lstrip().startswith("$") for line in lines
)

retry_until(command_complete, 5, raises=True)

Expand Down
Loading