cli: reject forward output gaps during attach (#117)

Overlap trimming advanced the attach cursor across missing PTY bytes. Reject forward gaps before writing output and let the existing error path restore terminal mode. Cover lost, contiguous and overlapping delivery through the real CLI in a controlling terminal.

Co-authored-by: Lucenx9 <185146821+Lucenx9@users.noreply.github.com>
effa354d07Simone committed on 10/14/2026, 3:14:11 PM· committed by GitHubparent1122658
11 files changedLine totals unavailable