gsxdsm
e4a53b6f47
fix: stop terminal history duplicating on reconnect, agree one size across viewers
...
Driving a shared PTY with two real WebSocket viewers against a live instance
surfaced two defects.
Duplicated history: the server replayed the entire scrollback on every
attach, and the client appended it into an xterm that still displayed that
history. Every reconnect — backgrounded tab, laptop sleep, heartbeat timeout
— therefore added a second copy, seen as the last prompt appearing twice.
TerminalService now tracks cumulative output and serves a resume: a client
reports the offset it has rendered and receives only the gap, or a full
replay flagged reset so it clears first.
Wrong size: resize was last-writer-wins. Measured — viewer A at 80x24 had
its shell report 200x50 the moment viewer B attached on a bigger screen,
while A still drew 80 columns, so wrapped lines and full-screen programs
broke for A. TerminalViewportRegistry sizes the PTY to the per-dimension
minimum across attached viewers, the rule terminal multiplexers settled on,
and gives room back when a viewer leaves. Viewers that have not yet measured
themselves do not constrain the size.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-18 19:52:36 -07:00
..
2026-08-18 19:13:53 -07:00
2026-08-14 12:41:03 -07:00
2026-06-27 15:56:42 -07:00
2026-06-22 15:23:43 -07:00
2026-07-01 07:50:52 -07:00
2026-07-26 11:17:52 -07:00
2026-08-09 16:27:51 -07:00
2026-07-26 11:17:52 -07:00
2026-07-26 11:17:52 -07:00
2026-08-09 17:10:49 -07:00
2026-07-26 11:17:52 -07:00
2026-07-26 10:13:39 -07:00
2026-05-20 03:19:44 -07:00
2026-07-14 18:47:53 -07:00
2026-07-26 11:17:52 -07:00
2026-08-15 21:24:25 -07:00
2026-07-26 10:13:39 -07:00
2026-07-02 20:16:43 -07:00
2026-07-18 11:02:45 -07:00
2026-07-12 12:49:37 -07:00
2026-05-15 22:24:12 -07:00
2026-07-17 14:25:30 -07:00
2026-05-13 15:05:05 -07:00
2026-04-23 23:02:36 -07:00
2026-08-03 00:20:53 -07:00
2026-07-26 09:50:44 -07:00
2026-08-03 00:20:53 -07:00
2026-06-23 19:52:52 -07:00
2026-06-23 20:14:14 -07:00
2026-08-12 16:03:30 -07:00
2026-08-09 23:21:02 -07:00
2026-05-15 15:19:56 -07:00
2026-07-26 10:13:39 -07:00
2026-06-13 19:40:15 -07:00
2026-07-26 08:48:36 -07:00
2026-07-25 05:15:02 -07:00
2026-07-18 00:33:14 -07:00
2026-07-02 11:38:31 -07:00
2026-07-26 09:50:44 -07:00
2026-07-16 03:17:35 -07:00
2026-07-25 09:07:09 -07:00
2026-07-26 09:50:44 -07:00
2026-04-20 12:59:58 -07:00
2026-05-21 18:15:26 -07:00
2026-08-15 23:14:24 -07:00
2026-05-03 14:10:11 -07:00
2026-05-03 07:47:45 -07:00
2026-07-19 16:29:39 -07:00
2026-07-26 19:52:32 -07:00
2026-07-26 09:50:44 -07:00
2026-07-26 09:50:44 -07:00
2026-08-17 15:47:43 -07:00
2026-08-01 04:03:26 -07:00
2026-04-23 23:02:36 -07:00
2026-06-03 19:06:53 -07:00
2026-05-20 04:12:40 -07:00
2026-07-03 21:45:21 -07:00
2026-06-03 22:35:28 -07:00
2026-07-28 23:23:13 -07:00
2026-08-13 15:12:08 -07:00
2026-05-16 09:21:06 -07:00
2026-08-13 16:48:01 -07:00
2026-06-03 13:02:23 -07:00
2026-07-26 11:17:52 -07:00
2026-07-26 11:17:52 -07:00
2026-06-27 09:28:29 -07:00
2026-06-27 12:15:42 -07:00
2026-06-10 09:21:48 -07:00
2026-04-25 18:22:37 -07:00
2026-07-11 17:16:49 -07:00
2026-07-26 09:50:44 -07:00
2026-07-13 19:07:58 -07:00
2026-07-26 11:17:52 -07:00
2026-07-02 18:28:06 -07:00
2026-06-21 13:25:40 -07:00
2026-08-17 20:54:43 -07:00
2026-07-26 19:52:32 -07:00
2026-08-01 04:03:26 -07:00
2026-07-26 11:17:52 -07:00
2026-07-20 23:28:49 -07:00
2026-07-26 11:17:52 -07:00
2026-07-26 09:50:44 -07:00
2026-08-15 06:42:39 -07:00
2026-07-19 18:00:47 -07:00
2026-05-06 02:14:05 -07:00
2026-04-16 10:04:44 -07:00
2026-07-23 22:53:04 -07:00
2026-05-21 18:15:26 -07:00
2026-04-23 23:02:35 -07:00
2026-07-23 21:29:54 -07:00
2026-06-07 02:26:00 +07:00
2026-07-19 16:29:39 -07:00
2026-04-23 23:02:36 -07:00
2026-06-03 19:06:53 -07:00
2026-08-01 09:53:36 -07:00
2026-04-24 08:55:02 -07:00
2026-07-26 11:17:52 -07:00
2026-08-15 21:24:25 -07:00
2026-08-09 17:10:49 -07:00
2026-07-26 10:13:39 -07:00
2026-07-26 09:50:44 -07:00
2026-07-26 09:50:44 -07:00
2026-06-23 20:03:44 -07:00
2026-06-17 03:29:39 -07:00
2026-05-01 13:08:07 -07:00
2026-07-30 10:35:31 -07:00
2026-04-20 10:16:13 -07:00
2026-05-08 08:37:26 -07:00
2026-05-07 23:21:05 -07:00
2026-07-26 09:50:44 -07:00
2026-07-30 14:12:14 -07:00
2026-07-05 13:15:56 -07:00
2026-08-12 22:18:18 -07:00
2026-08-13 15:43:16 -07:00
2026-08-18 19:52:36 -07:00
2026-08-18 19:13:53 -07:00
2026-07-17 00:00:46 -07:00
2026-07-16 16:01:29 -07:00
2026-07-14 17:18:06 -07:00
2026-07-29 09:04:58 -07:00
2026-04-27 01:40:07 -07:00
2026-07-26 09:50:44 -07:00
2026-08-02 17:27:31 -07:00
2026-08-03 09:04:45 -07:00
2026-07-25 05:48:35 -07:00
2026-08-04 01:24:30 -07:00
2026-06-29 23:17:49 -07:00
2026-07-12 12:49:37 -07:00
2026-07-26 09:50:44 -07:00
2026-07-26 10:13:39 -07:00
2026-07-26 11:17:52 -07:00