Neil
f730fd05a1
fix(terminal): stop stray escape tails on Windows after returning to a busy pane ( #43348 )
...
* fix(terminal): stop stray escape tails on Windows by starting the daemon output sequence at first attach
On Windows, returning to a busy terminal could print the tail of an escape
sequence on the prompt row ("?2026h", "149C", "5;46m").
ConPTY's startup preamble is replayed into a new session before its creating
client attaches. The daemon counted those bytes in the session's output
sequence, but main counts a new session's stream from attach, so the daemon's
sequence ran 20 chars ahead of main's. A restore that used a daemon snapshot
(after a hidden-pane data gap or a renderer reload) was labelled 20 chars past
the stream position it covered; the renderer then dropped the next 20 chars of
live output, often from the middle of an escape sequence.
The output plane now counts only bytes emitted once a client has attached, so
both sides count the same stream. Protocol v57 rolls the fix into a fresh
daemon.
* test(terminal): pin the bytes the attached client receives in the pre-attach sequence test
2026-11-16 18:51:45 -08:00
..
2026-11-16 17:11:09 -08:00
2026-11-16 12:00:43 -08:00
2026-11-16 18:50:33 -08:00
2026-11-16 14:48:10 -08:00
2026-11-16 16:07:28 -08:00
2026-11-16 04:03:33 -08:00
2026-11-15 18:26:10 -08:00
2026-11-16 14:52:38 -08:00
2026-11-15 13:18:34 -08:00
2026-11-16 14:42:12 -08:00
2026-11-16 04:03:33 -08:00
2026-11-15 23:46:34 -08:00
2026-11-15 13:45:47 -08:00
2026-11-16 04:03:33 -08:00
2026-11-16 18:18:37 -08:00
2026-11-15 11:06:48 -08:00
2026-11-16 14:42:12 -08:00
2026-11-16 12:00:43 -08:00
2026-11-15 22:15:36 -08:00
2026-11-15 16:32:28 -08:00
2026-11-12 00:20:10 -08:00
2026-11-16 18:18:37 -08:00
2026-11-16 04:56:13 -08:00
2026-11-16 17:11:09 -08:00
2026-11-15 22:15:36 -08:00
2026-11-16 14:52:38 -08:00
2026-11-16 15:26:25 +00:00
2026-11-16 04:03:33 -08:00
2026-11-16 14:52:38 -08:00
2026-11-16 17:11:09 -08:00
2026-11-15 20:30:40 -08:00
2026-11-16 14:52:38 -08:00
2026-11-15 11:06:48 -08:00
2026-11-16 18:51:45 -08:00
2026-11-14 16:01:38 -08:00
2026-11-12 11:08:38 -08:00
2026-11-15 07:23:28 -08:00
2026-11-15 19:09:38 -08:00
2026-11-16 05:32:37 -08:00
2026-11-16 15:00:33 -08:00
2026-11-16 17:11:09 -08:00
2026-11-15 19:09:38 -08:00
2026-11-16 17:11:09 -08:00
2026-11-16 04:03:33 -08:00
2026-11-16 04:03:33 -08:00
2026-11-16 05:32:37 -08:00
2026-11-15 17:02:20 -08:00
2026-11-16 14:52:38 -08:00
2026-11-16 14:35:11 -08:00
2026-11-16 17:11:09 -08:00
2026-11-16 04:03:33 -08:00
2026-11-16 16:58:27 -08:00
2026-11-16 04:03:33 -08:00
2026-11-16 14:52:38 -08:00
2026-11-15 11:06:48 -08:00
2026-11-15 23:14:43 -08:00
2026-11-15 13:45:47 -08:00
2026-11-16 12:00:43 -08:00
2026-11-16 04:03:33 -08:00
2026-11-15 20:30:40 -08:00
2026-11-16 17:11:09 -08:00
2026-11-15 07:23:28 -08:00
2026-11-15 21:21:43 -08:00
2026-11-16 01:01:24 -08:00
2026-11-16 12:31:27 -08:00
2026-11-15 19:09:38 -08:00
2026-11-15 19:09:38 -08:00
2026-11-16 04:03:33 -08:00
2026-11-12 20:04:13 -08:00
2026-11-15 23:14:43 -08:00
2026-11-15 17:13:07 -08:00
2026-11-16 04:03:33 -08:00
2026-11-15 17:13:07 -08:00
2026-11-15 05:44:50 -08:00
2026-11-16 20:29:43 +00:00
2026-11-16 18:31:12 -08:00
2026-11-16 17:11:09 -08:00
2026-11-16 04:03:33 -08:00
2026-11-16 13:54:05 -08:00
2026-11-15 13:18:34 -08:00
2026-11-16 17:11:09 -08:00
2026-11-15 23:29:03 -08:00
2026-11-15 22:15:36 -08:00
2026-11-16 17:11:09 -08:00
2026-11-15 23:46:34 -08:00
2026-11-15 19:09:38 -08:00
2026-11-15 17:13:07 -08:00
2026-11-16 17:11:09 -08:00
2026-11-15 21:21:43 -08:00
2026-11-12 12:45:03 -08:00
2026-11-12 00:20:10 -08:00
2026-11-16 17:11:09 -08:00
2026-11-15 02:00:23 -08:00
2026-11-15 22:15:36 -08:00
2026-11-16 04:03:33 -08:00
2026-11-16 17:11:09 -08:00
2026-11-16 16:53:39 -08:00
2026-11-16 16:18:18 -08:00
2026-11-16 18:18:37 -08:00
2026-11-16 04:03:33 -08:00
2026-11-15 15:40:33 -08:00
2026-11-16 17:11:09 -08:00
2026-11-16 04:03:33 -08:00
2026-11-16 12:00:43 -08:00
2026-11-16 17:11:09 -08:00
2026-11-16 17:51:09 -08:00
2026-11-12 16:18:16 -08:00
2026-11-12 00:20:10 -08:00
2026-11-16 07:57:13 -08:00
2026-11-15 21:53:40 -08:00
2026-11-16 15:00:33 -08:00
2026-11-15 19:09:38 -08:00
2026-11-16 18:31:12 -08:00
2026-11-12 23:12:20 -08:00
2026-11-15 20:18:27 -08:00
2026-11-16 17:51:09 -08:00
2026-11-16 16:58:27 -08:00
2026-11-16 04:03:33 -08:00
2026-11-15 19:09:38 -08:00
2026-11-16 04:03:33 -08:00
2026-11-16 04:03:33 -08:00
2026-11-16 17:11:09 -08:00
2026-11-15 21:40:35 -08:00
2026-11-16 14:13:13 -08:00
2026-11-16 04:03:33 -08:00
2026-11-16 17:11:09 -08:00
2026-11-13 17:26:54 -08:00
2026-11-16 13:43:15 -08:00
2026-11-16 17:11:09 -08:00
2026-11-16 04:03:33 -08:00
2026-11-15 01:25:47 -08:00
2026-11-16 17:11:09 -08:00
2026-11-16 04:03:33 -08:00
2026-11-15 23:10:22 +00:00
2026-11-15 13:18:34 -08:00
2026-11-16 04:03:33 -08:00
2026-11-16 17:11:09 -08:00
2026-11-16 18:31:12 -08:00
2026-11-16 17:11:09 -08:00
2026-11-16 17:59:37 -08:00