alan
0963a071d0
Terminals: flow-controlled output, immediate echo, sliced emulator writes
...
Machine terminals no longer skip output for live viewers. Each connection's
subscription is a cursor into the 1 MiB retained tail, drained by the
connection's writer as soon as the PTY reader writes (no 50 ms tick; a
streaming frame gathers for at most 2 ms). A subscription opened with
flow: true gets window (256 KiB) in its reply and acknowledges drawn output
with terminal_ack; while one is full the reader stops reading the PTY, so
the program waits. A subscription full for 3 s without acking stops holding
the terminal and later sees a gap; a gone connection drops its
subscriptions. Clients that never ask for flow keep the old pacing (newest
64 KiB per 50 ms). terminal_open/terminal_output replies precede the frames
that follow them, which start exactly at the reply's output_end.
Chat shell runs share the buffer code: output is pushed as it arrives,
oldest first, while the chat's watchers keep short queues; 256 KiB unpushed
stops the reader, and watchers behind for 3 s get the old pacing.
The app asks for flow, takes offsets from the server (frame end, reply
output_end) instead of re-encoded text length, acks per quarter window, and
writes replays and bursts into the emulator in slices that yield to the
event loop (ChatShellTerminalFeed, shared with chat shells).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-25 23:57:18 +00:00
..
2026-10-19 22:27:27 +01:00
2026-11-07 01:35:39 +00:00
2026-11-12 02:52:52 +00:00
2026-11-12 18:39:03 +00:00
2026-11-04 23:25:55 +00:00
2026-11-04 23:25:55 +00:00
2026-11-04 17:43:47 +00:00
2026-11-04 17:43:47 +00:00
2026-10-31 12:23:51 +00:00
2026-11-01 02:03:58 +00:00
2026-10-20 15:36:14 +01:00
2026-10-19 22:27:44 +01:00
2026-11-24 22:54:38 +00:00
2026-11-24 22:54:38 +00:00
2026-11-03 19:45:43 +00:00
2026-10-20 17:41:35 +01:00
2026-10-30 20:53:03 +00:00
2026-10-30 20:53:03 +00:00
2026-10-20 15:45:44 +01:00
2026-10-30 20:53:03 +00:00
2026-11-02 17:08:19 +00:00
2026-11-08 15:24:23 +00:00
2026-11-08 15:24:23 +00:00
2026-10-20 12:10:39 +01:00
2026-11-07 16:43:24 +00:00
2026-11-03 19:45:43 +00:00
2026-10-20 15:45:44 +01:00
2026-11-11 17:11:40 +00:00
2026-11-12 03:23:22 +00:00
2026-10-20 18:07:00 +01:00
2026-11-03 19:45:43 +00:00
2026-11-03 10:53:38 +00:00
2026-11-09 16:08:35 +00:00
2026-11-02 16:07:42 +00:00
2026-10-20 22:17:41 +01:00
2026-11-01 18:30:20 +00:00
2026-11-04 16:17:08 +00:00
2026-11-07 16:33:49 +00:00
2026-11-09 20:07:41 +00:00
2026-11-09 20:07:41 +00:00
2026-11-03 10:59:41 +00:00
2026-11-03 19:45:43 +00:00
2026-11-03 10:59:41 +00:00
2026-10-18 15:55:17 +01:00
2026-11-02 16:44:07 +00:00
2026-11-24 22:54:38 +00:00
2026-11-03 19:45:43 +00:00
2026-10-31 16:52:31 +00:00
2026-11-13 16:47:41 +00:00
2026-11-02 16:37:35 +00:00
2026-10-24 18:16:10 +01:00
2026-11-03 19:45:43 +00:00
2026-11-11 17:11:40 +00:00
2026-11-11 17:11:40 +00:00
2026-11-12 03:23:22 +00:00
2026-11-12 03:23:22 +00:00
2026-11-24 22:54:38 +00:00
2026-11-25 00:51:06 +00:00
2026-11-07 01:42:48 +00:00
2026-11-25 00:51:06 +00:00
2026-11-11 17:11:40 +00:00
2026-11-03 12:31:31 +00:00
2026-11-03 12:31:31 +00:00
2026-11-02 17:08:19 +00:00
2026-11-02 17:08:19 +00:00
2026-11-25 23:57:18 +00:00
2026-11-12 03:23:22 +00:00
2026-11-05 13:42:01 +00:00
2026-11-05 13:42:01 +00:00
2026-11-07 00:53:15 +00:00
2026-11-09 23:29:25 +00:00
2026-11-09 23:29:25 +00:00
2026-11-25 23:57:18 +00:00
2026-11-06 15:08:34 +00:00
2026-11-07 16:33:49 +00:00
2026-10-20 12:10:39 +01:00
2026-11-09 19:57:46 +00:00
2026-11-09 19:57:46 +00:00
2026-11-03 19:45:43 +00:00
2026-11-09 23:29:25 +00:00
2026-11-25 23:57:18 +00:00
2026-11-09 19:57:46 +00:00
2026-11-25 23:57:18 +00:00
2026-11-25 23:57:18 +00:00
2026-11-09 19:57:46 +00:00
2026-11-25 23:57:18 +00:00
2026-11-09 19:57:46 +00:00
2026-11-09 19:57:46 +00:00
2026-11-09 19:57:46 +00:00
2026-11-09 19:57:46 +00:00
2026-11-09 19:57:46 +00:00
2026-11-25 20:53:57 +00:00
2026-11-25 20:53:57 +00:00
2026-11-03 10:53:38 +00:00
2026-11-13 16:47:41 +00:00
2026-11-25 00:51:06 +00:00
2026-11-13 16:47:41 +00:00
2026-11-09 16:55:28 +00:00
2026-11-21 17:08:02 +00:00
2026-11-21 17:08:02 +00:00
2026-11-21 17:08:02 +00:00
2026-11-12 01:55:28 +00:00
2026-11-09 16:34:21 +00:00
2026-11-21 17:08:02 +00:00
2026-11-09 16:55:28 +00:00
2026-11-09 16:55:28 +00:00
2026-11-09 16:34:21 +00:00
2026-11-09 16:08:35 +00:00
2026-11-09 16:08:35 +00:00
2026-10-20 18:33:20 +01:00
2026-11-07 16:33:49 +00:00
2026-11-07 16:43:24 +00:00
2026-10-23 21:25:41 +01:00
2026-10-23 21:25:41 +01:00
2026-10-21 00:13:51 +01:00
2026-11-25 20:53:57 +00:00
2026-11-11 10:30:37 +00:00
2026-10-16 13:36:48 +01:00
2026-10-20 20:55:57 +01:00
2026-10-19 22:27:44 +01:00
2026-10-11 23:00:25 +01:00
2026-11-03 19:35:47 +00:00
2026-11-01 18:58:14 +00:00
2026-10-20 16:05:33 +01:00
2026-11-10 16:06:40 +00:00
2026-11-01 21:51:48 +00:00
2026-11-01 21:51:48 +00:00
2026-11-01 21:51:48 +00:00
2026-11-07 00:54:36 +00:00
2026-11-07 00:54:36 +00:00
2026-11-10 03:00:45 +00:00
2026-11-10 03:00:45 +00:00
2026-11-10 03:00:45 +00:00
2026-11-10 03:00:45 +00:00
2026-11-11 10:30:37 +00:00
2026-10-20 15:49:08 +01:00
2026-11-10 16:06:40 +00:00
2026-11-09 01:32:31 +00:00
2026-11-09 01:32:31 +00:00
2026-11-07 00:53:15 +00:00
2026-11-08 23:57:53 +00:00
2026-11-08 23:57:53 +00:00
2026-11-07 00:53:15 +00:00
2026-11-01 18:58:14 +00:00
2026-11-10 16:06:40 +00:00
2026-10-18 14:50:18 +01:00
2026-10-18 20:23:43 +01:00
2026-10-20 16:35:30 +01:00
2026-10-21 00:56:37 +01:00
2026-10-30 20:40:06 +00:00
2026-10-10 00:01:02 +01:00
2026-11-01 02:03:58 +00:00
2026-10-30 21:36:27 +00:00
2026-10-08 22:22:17 +01:00
2026-10-08 23:17:38 +01:00
2026-10-30 20:40:06 +00:00
2026-11-02 15:47:06 +00:00
2026-11-12 18:39:03 +00:00
2026-11-12 18:39:03 +00:00
2026-10-08 23:17:38 +01:00
2026-10-20 23:51:14 +01:00
2026-10-19 00:00:12 +01:00
2026-10-10 20:55:42 +01:00
2026-11-10 01:00:49 +00:00
2026-11-10 03:00:45 +00:00
2026-11-04 16:24:17 +00:00
2026-10-17 15:45:46 +01:00
2026-10-18 20:38:03 +01:00
2026-10-31 22:11:14 +00:00
2026-10-17 17:06:51 +01:00
2026-10-31 22:11:14 +00:00
2026-11-06 21:34:55 +00:00
2026-10-15 18:27:22 +01:00
2026-11-04 18:08:42 +00:00
2026-11-04 18:08:42 +00:00
2026-11-04 18:08:42 +00:00
2026-10-20 15:44:23 +01:00
2026-10-20 18:22:13 +01:00
2026-11-12 01:55:28 +00:00
2026-11-04 16:17:08 +00:00
2026-11-11 10:30:37 +00:00
2026-10-20 15:40:43 +01:00
2026-11-10 16:06:40 +00:00
2026-11-10 16:06:40 +00:00
2026-11-12 11:30:17 +00:00
2026-10-20 15:49:08 +01:00
2026-11-25 19:17:16 +00:00
2026-10-21 01:04:43 +01:00
2026-10-21 01:04:43 +01:00
2026-10-21 00:48:34 +01:00
2026-10-21 01:04:43 +01:00
2026-11-03 19:45:43 +00:00
2026-11-03 13:35:27 +00:00
2026-10-20 17:54:55 +01:00
2026-11-08 23:59:19 +00:00
2026-11-07 01:35:39 +00:00
2026-11-07 01:38:59 +00:00
2026-11-07 01:38:59 +00:00
2026-11-01 18:58:14 +00:00
2026-11-01 18:58:14 +00:00
2026-11-01 17:24:56 +00:00
2026-11-01 18:58:14 +00:00
2026-11-01 17:24:56 +00:00
2026-11-01 18:58:14 +00:00
2026-10-21 15:26:29 +01:00
2026-11-11 10:30:37 +00:00
2026-10-21 15:26:29 +01:00
2026-11-04 14:04:35 +00:00
2026-10-20 21:20:06 +01:00
2026-10-20 16:05:33 +01:00
2026-11-12 11:30:17 +00:00
2026-10-20 21:47:04 +01:00
2026-10-20 21:47:04 +01:00
2026-11-25 19:17:16 +00:00
2026-11-25 19:17:16 +00:00
2026-10-09 23:21:01 +01:00
2026-10-18 00:55:26 +01:00
2026-10-09 23:21:01 +01:00
2026-11-06 21:34:55 +00:00
2026-11-06 21:29:51 +00:00
2026-11-06 21:29:51 +00:00
2026-11-06 21:29:51 +00:00
2026-11-06 21:27:11 +00:00
2026-11-06 21:40:42 +00:00
2026-11-06 21:34:55 +00:00
2026-11-06 21:34:55 +00:00
2026-11-06 21:40:42 +00:00
2026-11-06 21:40:42 +00:00
2026-11-03 19:35:47 +00:00
2026-11-25 23:57:18 +00:00
2026-11-09 21:30:15 +00:00
2026-11-25 23:57:18 +00:00
2026-11-25 23:57:18 +00:00
2026-11-25 23:57:18 +00:00
2026-11-10 00:37:11 +00:00
2026-11-10 00:37:11 +00:00
2026-11-25 23:57:18 +00:00
2026-11-25 23:57:18 +00:00
2026-11-10 00:37:11 +00:00
2026-11-25 23:57:18 +00:00
2026-11-25 23:57:18 +00:00
2026-11-25 23:57:18 +00:00
2026-11-25 23:57:18 +00:00
2026-11-09 21:30:15 +00:00
2026-11-25 23:57:18 +00:00
2026-10-21 00:48:34 +01:00
2026-11-11 00:39:36 +00:00
2026-11-04 13:00:48 +00:00
2026-11-04 13:00:48 +00:00
2026-11-11 00:39:36 +00:00
2026-10-18 15:53:24 +01:00
2026-11-10 16:06:40 +00:00
2026-11-04 12:56:40 +00:00
2026-11-03 22:16:49 +00:00
2026-10-18 14:50:18 +01:00
2026-10-18 14:50:18 +01:00
2026-11-10 01:21:15 +00:00
2026-11-10 01:21:15 +00:00
2026-11-10 01:21:15 +00:00
2026-11-10 01:21:15 +00:00
2026-11-10 01:21:15 +00:00
2026-10-16 18:37:01 +01:00
2026-11-25 23:57:18 +00:00
2026-10-20 16:19:21 +01:00
2026-10-10 01:22:02 +01:00
2026-11-03 19:45:43 +00:00