Skip to content
Merged
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
7 changes: 7 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,13 @@ dimensions. The same terminal receives the new frame and advances its
epoch. See {ref}`tmux-row-bookmarks` to check whether an absolute-row
bookmark is still valid.

#### Report panes outside the tmux client's session (#166)

A live or paused {class}`~libvt.contrib.tmux.control.TmuxPaneSync` enters
`CHECKING_SCOPE` when it rechecks session membership. If the pane is
outside the client's session, the sync enters `OUT_OF_SCOPE` and keeps
its last screen.

### Documentation

#### Assert effective colors alongside screen goldens (#190)
Expand Down
7 changes: 7 additions & 0 deletions MIGRATION
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,13 @@ until the coordinator returns to `LIVE`. Read the new geometry from the
same terminal after that checkpoint. Check its
{ref}`bookmark epoch <tmux-row-bookmarks>` before reusing an absolute row.

### `TmuxPaneSync` session scope (#76)

Handle `OUT_OF_SCOPE` alongside `LIVE` and `FAILED` when awaiting an
attachment. `terminal` holds the last screen when the pane moves away and
is `None` when the pane was never attached. Send `resync()` through a control
client attached to a session that contains the pane.

## libvt 0.0.1a2 (2026-11-28)

### Curated PEP 562 `libvt` root exports (#43)
Expand Down
10 changes: 9 additions & 1 deletion docs/topics/sync-and-asyncio.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ two-phase `refresh-client -A '%N:pause'` barrier and atomic `capture-pane` +
>>> parser.feed(b"%output %0 hello\\015\\012\n")
[TmuxOutput(pane_id='%0', data=b'hello\r\n')]
>>> sync = TmuxPaneSync("%0")
>>> "refresh-client -A '%0:pause'" in sync.begin_attach(), sync.phase
>>> "list-panes -s" in sync.begin_attach(), sync.phase
(True, <TmuxAttachPhase.PAUSING: 'pausing'>)
```

Expand Down Expand Up @@ -242,6 +242,14 @@ other tasks also write to the client. Catch
{meth}`~libvt.contrib.tmux.control.TmuxPaneSync.handle_event` call so that the
other panes receive the same event.

An attach checks the control client's session before pausing or capturing the
pane. A sync can enter `CHECKING_SCOPE` while it confirms whether the pane
still belongs to the session. If the pane moves outside that session, the
sync enters `OUT_OF_SCOPE` and retains the last observed screen. To follow
the pane, use a control client attached to a session containing it and send
the result of
{meth}`~libvt.contrib.tmux.control.TmuxPaneSync.resync` on that client.

### Follow pane process replacement

Tmux keeps the pane ID when a new child takes over after `respawn-pane`.
Expand Down
Loading
Loading