agent-ssh 0.4.1

Arrange agent terminal layouts and reconnect through provider attachment plans
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
# Passive Windows capture boundary

As of 0.3.7, `save` reads Windows Terminal native periodic checkpoints. It never invokes the old title-challenge/tab-selection collector, never reads screen contents and never requires idle physical input.

Enable `firstWindowPreference=persistedWindowLayout` in Terminal settings. Native updates are approximately five minutes apart; save reports checkpoint age and refuses checkpoints older than seven minutes. Layout-only changes can remain stale until the next checkpoint. This setting also enables native startup restoration; avoid configuring a second automatic startup restorer.

The adapter resolves stable layouts and Preview named-workspace indirections, replays explicit split ratios/focus actions, and binds persisted connection session GUIDs exactly to live WT_SESSION values read from recognized x64 processes. It reads only that identity from the process environment; no environment block is exported or saved. The x64 process-parameter offsets and native state format are compatibility surfaces, not a stable live API. Missing/ambiguous bindings, unexpected actions, unsupported distributions/architectures and multiple HWNDs sharing a process fail without invasive fallback.

TCP provenance uses GetExtendedTcpTable OWNER_MODULE_ALL endpoint tuples, PID and socket creation time. A remote observation independently proves the exact tuple against an established socket owned by an sshd ancestor. Raw local TCP state alone does not prove interface health. Existing tmux clients remain exact socket/session references. Direct Marshal Codex launchers additionally retain verified conversation IDs, cwd, process incarnation and the deployed managed-resume program; they do not pretend to be tmux sessions.

Version 3 recovery preserves the complete tree. Unavailable or already-running targets become labelled shell panes at the same positions; other panes can recover. No duplicate local or direct-remote Codex interface is launched over an observed live owner. Legacy version 1/2 provider layouts retain their existing explicit partial-load semantics.

The historical capture-windows.ps1 and watchdog helpers remain in source for the read-only ProcessesOnly local ownership census and older fixture coverage. They are not used for save layout capture.