Neil
cc48f36fe2
perf(native-chat): stream appends instead of whole items to desktop chats on remote hosts ( #39657 )
...
* refactor(agent-session): split subscribe params and read failure text into their own modules
Both host files sit at the 300-line budget, so the append negotiation that
follows needs room. Pure moves: SubscribeParams keeps its exact schema (now
z.object + sessionId instead of OptionsParams.extend, which is equivalent) and
is re-exported from the params module; stream failure text moves beside the
other read-refusal classification.
* perf(agent-session): stream running tool output heads as appends
A running tool call re-sends its whole output head (up to 16KB) on every
revision, and keeps re-sending the saturated head after it stops growing.
Streams that also ask for toolOutputAppend (host advertises
agent-session.tool-output-append.v1) now get only the head's new text under the
same shared sender/reader rules and self-healing refusal as reply appends.
- The live read negotiates the exact subscribe capabilities object instead of
a boolean; mobile asks for tool output appends when advertised.
- Hosts with only text-append.v1 drop the unknown key, so clients ask only
when the new capability is advertised and both ends track the same bases.
- Text-only streams keep the 8-base limit already-shipped readers evict at.
- A host that refuses the capabilities param (an older build after a
downgrade) makes the next open go without appends instead of failing forever.
* perf(native-chat): ask remote hosts for streamed text appends on desktop
Desktop chats on a paired or SSH-managed orcad received every streamed reply
checkpoint whole: about 9x the reply's bytes at the Claude/Codex checkpoint
cadence, and O(N^2) for ACP/JSONL providers that rewrite each 60ms window.
The desktop read now asks environment hosts for reply and tool-output appends
when they advertise them, reusing the shared reader that rebuilds whole items
before the reducer. Local IPC reads are unchanged and still subscribe in the
same turn. The support read runs once per chat run, overlapping hydration.
2026-11-07 18:31:29 -08:00
..
2026-11-07 23:40:10 +00:00
2026-11-07 16:34:21 -08:00
2026-10-25 04:05:46 -07:00
2026-10-25 04:05:46 -07:00
2026-11-03 16:36:54 -08:00
2026-11-06 02:21:09 -08:00
2026-11-05 22:34:16 -08:00
2026-11-06 02:21:09 -08:00
2026-11-06 23:44:54 -08:00
2026-11-03 02:10:33 +00:00
2026-11-03 02:10:33 +00:00
2026-11-03 20:19:21 -08:00
2026-11-03 20:19:21 -08:00
2026-11-07 03:28:04 +00:00
2026-11-07 03:28:04 +00:00
2026-10-29 03:55:41 +00:00
2026-11-07 03:28:04 +00:00
2026-11-01 21:08:49 +00:00
2026-11-07 03:28:04 +00:00
2026-11-01 21:08:49 +00:00
2026-10-25 04:05:46 -07:00
2026-11-07 03:28:04 +00:00
2026-11-01 21:08:49 +00:00
2026-10-25 04:05:46 -07:00
2026-11-07 03:28:04 +00:00
2026-11-01 21:08:49 +00:00
2026-11-01 18:38:23 +00:00
2026-11-05 10:39:54 -08:00
2026-10-01 01:18:24 -04:00
2026-10-24 03:48:00 -07:00
2026-10-25 04:05:46 -07:00
2026-11-06 18:17:31 +00:00
2026-11-03 16:36:54 -08:00
2026-09-28 14:28:09 -07:00
2026-10-25 04:05:46 -07:00
2026-11-07 04:55:16 +00:00
2026-11-07 03:28:04 +00:00
2026-11-01 03:14:46 -08:00
2026-11-07 03:28:04 +00:00
2026-10-31 16:52:05 -07:00
2026-10-31 16:52:05 -07:00
2026-11-05 20:16:34 +00:00
2026-10-26 20:15:24 +00:00
2026-10-29 03:55:41 +00:00
2026-10-29 03:55:41 +00:00
2026-10-25 04:05:46 -07:00
2026-10-25 04:05:46 -07:00
2026-10-25 04:05:46 -07:00
2026-10-25 04:05:46 -07:00
2026-10-25 04:05:46 -07:00
2026-10-25 04:05:46 -07:00
2026-10-26 22:34:31 +00:00
2026-11-05 20:44:10 +00:00
2026-11-07 23:43:33 +00:00
2026-10-25 04:05:46 -07:00
2026-11-03 15:39:24 -08:00
2026-11-07 01:25:34 +00:00
2026-10-29 04:13:09 +00:00
2026-11-07 04:55:30 +00:00
2026-10-24 01:22:18 -07:00
2026-11-03 17:59:29 -08:00
2026-11-01 18:38:23 +00:00
2026-10-27 05:29:46 +00:00
2026-10-27 05:29:46 +00:00
2026-11-01 18:07:43 +00:00
2026-11-01 18:07:43 +00:00
2026-11-01 18:38:23 +00:00
2026-11-03 19:12:25 -08:00
2026-11-07 04:41:07 +00:00
2026-11-07 23:14:26 +00:00
2026-11-01 18:07:43 +00:00
2026-10-24 01:22:18 -07:00
2026-11-01 18:07:43 +00:00
2026-11-03 19:32:19 -08:00
2026-11-01 18:07:43 +00:00
2026-11-07 04:41:07 +00:00
2026-11-01 18:38:23 +00:00
2026-11-01 18:38:23 +00:00
2026-10-25 04:05:46 -07:00
2026-11-01 18:07:43 +00:00
2026-11-01 18:07:43 +00:00
2026-11-01 18:07:43 +00:00
2026-11-01 18:38:23 +00:00
2026-11-07 23:14:26 +00:00
2026-10-24 01:22:18 -07:00
2026-11-03 22:49:34 -08:00
2026-10-27 17:21:27 +00:00
2026-11-07 23:43:33 +00:00
2026-10-24 05:38:41 -07:00
2026-11-01 03:14:46 -08:00
2026-10-28 21:39:54 -07:00
2026-11-04 03:40:25 -08:00
2026-11-03 19:56:34 -08:00
2026-11-06 18:16:22 +00:00
2026-11-07 23:45:44 +00:00
2026-11-07 23:45:44 +00:00
2026-10-26 22:34:31 +00:00
2026-10-13 20:25:00 -07:00
2026-10-02 19:16:08 -07:00
2026-10-21 15:31:55 -07:00
2026-11-03 23:59:28 -08:00
2026-11-01 10:32:11 +00:00
2026-09-28 16:58:15 -04:00
2026-10-14 01:25:03 -04:00
2026-10-24 03:48:00 -07:00
2026-10-25 04:05:46 -07:00
2026-11-04 00:25:44 -08:00
2026-11-06 18:16:22 +00:00
2026-10-25 04:05:46 -07:00
2026-11-05 23:06:47 +00:00
2026-11-05 23:06:47 +00:00
2026-11-06 02:08:24 -08:00
2026-11-07 04:56:26 +00:00
2026-11-02 03:14:58 -08:00
2026-11-01 07:38:29 -08:00
2026-10-25 04:05:46 -07:00
2026-10-25 04:05:46 -07:00
2026-11-07 04:55:30 +00:00
2026-11-06 23:39:35 -08:00
2026-11-07 04:55:16 +00:00
2026-11-03 14:45:49 -08:00
2026-11-07 03:28:04 +00:00
2026-11-03 14:19:08 -08:00
2026-11-05 10:39:54 -08:00
2026-11-04 03:40:25 -08:00
2026-11-06 06:00:08 -08:00
2026-11-07 04:55:30 +00:00
2026-11-06 06:00:08 -08:00
2026-11-06 16:46:07 +00:00
2026-11-06 12:42:48 -08:00
2026-11-05 23:06:47 +00:00
2026-10-28 02:09:49 -07:00
2026-11-04 02:40:10 -08:00
2026-10-31 22:33:23 -07:00
2026-10-31 22:33:23 -07:00
2026-11-04 01:39:49 -08:00
2026-10-29 00:40:56 +00:00
2026-10-25 04:05:46 -07:00
2026-11-04 03:40:25 -08:00
2026-10-17 01:35:34 -07:00
2026-10-24 16:40:41 -07:00
2026-10-30 16:35:12 +00:00
2026-11-01 23:39:33 +00:00
2026-10-24 14:43:09 -07:00
2026-10-31 16:52:05 -07:00
2026-11-02 10:02:47 +00:00
2026-11-07 23:20:40 +00:00
2026-10-25 04:05:46 -07:00
2026-10-29 14:24:18 +00:00
2026-11-04 03:40:25 -08:00
2026-11-03 19:56:34 -08:00
2026-11-03 18:28:10 +00:00
2026-10-31 16:52:05 -07:00
2026-10-30 21:27:30 +00:00
2026-10-29 03:55:41 +00:00
2026-11-03 16:36:54 -08:00
2026-11-03 15:39:24 -08:00
2026-11-02 10:01:47 +00:00
2026-10-27 17:35:31 +00:00
2026-10-24 19:37:19 -07:00
2026-10-25 04:05:46 -07:00
2026-10-28 21:15:56 -07:00
2026-11-03 16:36:54 -08:00
2026-10-24 03:48:00 -07:00
2026-09-15 21:31:05 -04:00
2026-10-29 03:55:41 +00:00
2026-10-25 04:05:46 -07:00
2026-11-05 22:08:45 +00:00
2026-10-28 21:15:56 -07:00
2026-11-03 19:12:25 -08:00
2026-11-01 03:14:46 -08:00
2026-11-03 15:39:24 -08:00
2026-10-06 12:59:32 -07:00
2026-11-02 03:14:58 -08:00
2026-11-05 23:06:47 +00:00
2026-11-07 04:55:30 +00:00
2026-11-06 05:12:00 +00:00
2026-10-25 04:05:46 -07:00
2026-11-06 02:08:24 -08:00
2026-11-05 23:06:47 +00:00
2026-11-06 05:12:00 +00:00
2026-11-05 10:25:23 -08:00
2026-11-01 03:14:46 -08:00
2026-11-06 02:08:24 -08:00
2026-11-06 12:42:48 -08:00
2026-11-05 22:42:44 +00:00
2026-11-04 00:25:44 -08:00
2026-11-07 11:35:38 -08:00
2026-11-07 11:35:38 -08:00
2026-11-05 23:06:47 +00:00
2026-11-04 02:40:10 -08:00
2026-10-25 04:05:46 -07:00
2026-11-07 23:32:44 +00:00
2026-11-03 16:36:54 -08:00
2026-11-07 03:28:04 +00:00
2026-11-03 23:59:28 -08:00
2026-11-01 21:33:42 -08:00
2026-11-01 03:14:46 -08:00
2026-10-21 12:01:27 -07:00
2026-10-25 04:05:46 -07:00
2026-11-01 07:38:29 -08:00
2026-10-24 14:09:35 -07:00
2026-10-25 04:05:46 -07:00
2026-11-05 22:08:45 +00:00
2026-10-24 14:09:35 -07:00
2026-11-06 18:17:31 +00:00
2026-11-03 14:55:35 -08:00
2026-10-30 16:35:12 +00:00
2026-11-04 06:01:18 +00:00
2026-10-25 04:05:46 -07:00
2026-11-03 16:36:54 -08:00
2026-11-04 06:01:18 +00:00
2026-10-24 14:09:35 -07:00
2026-10-25 04:05:46 -07:00
2026-11-03 22:49:34 -08:00
2026-10-25 04:05:46 -07:00
2026-10-29 03:55:41 +00:00
2026-11-07 03:28:04 +00:00
2026-11-01 07:38:29 -08:00
2026-10-29 03:55:41 +00:00
2026-11-04 06:01:18 +00:00
2026-10-29 03:55:41 +00:00
2026-11-03 14:19:08 -08:00
2026-11-05 19:45:51 +00:00
2026-10-24 19:37:19 -07:00
2026-11-01 04:29:28 +00:00
2026-11-01 07:38:29 -08:00
2026-11-06 02:08:24 -08:00
2026-11-01 07:38:29 -08:00
2026-11-05 23:06:47 +00:00
2026-11-01 15:50:58 +00:00
2026-11-06 18:17:24 -08:00
2026-11-06 12:42:48 -08:00
2026-11-06 10:29:55 -08:00
2026-11-06 18:17:31 +00:00
2026-11-06 18:17:31 +00:00
2026-11-06 18:17:31 +00:00
2026-11-01 17:53:52 +00:00
2026-11-01 02:45:03 +00:00
2026-11-01 04:29:28 +00:00
2026-11-06 16:44:29 +00:00
2026-11-04 20:35:53 +00:00
2026-10-31 02:47:30 +00:00
2026-11-01 15:13:22 +00:00
2026-10-29 03:55:41 +00:00
2026-11-01 04:29:28 +00:00
2026-11-05 22:08:45 +00:00
2026-11-04 20:35:53 +00:00
2026-10-30 16:35:12 +00:00
2026-11-04 20:35:53 +00:00
2026-11-07 01:25:34 +00:00
2026-10-30 21:27:30 +00:00
2026-10-30 16:35:12 +00:00
2026-11-07 23:43:33 +00:00
2026-11-01 04:29:28 +00:00
2026-10-29 03:55:41 +00:00
2026-10-29 03:55:41 +00:00
2026-11-05 23:48:01 +00:00
2026-11-03 22:49:34 -08:00
2026-11-02 17:02:05 -05:00
2026-11-03 14:55:35 -08:00
2026-11-03 18:01:55 +00:00
2026-10-25 04:05:46 -07:00
2026-10-25 04:05:46 -07:00
2026-10-30 16:35:12 +00:00
2026-10-25 04:05:46 -07:00
2026-10-25 04:05:46 -07:00
2026-10-25 04:05:46 -07:00
2026-10-25 04:05:46 -07:00
2026-11-01 21:08:49 +00:00
2026-11-04 00:25:44 -08:00
2026-11-02 10:25:38 -08:00
2026-11-05 23:48:01 +00:00
2026-10-27 03:20:02 +00:00
2026-11-03 19:12:25 -08:00
2026-10-27 03:20:02 +00:00
2026-11-02 10:25:38 -08:00
2026-11-05 10:39:54 -08:00
2026-11-02 10:25:38 -08:00
2026-11-02 10:25:38 -08:00
2026-11-03 19:56:34 -08:00
2026-11-03 19:56:34 -08:00
2026-11-04 04:51:57 -08:00
2026-11-03 19:56:34 -08:00
2026-10-24 19:37:19 -07:00
2026-11-03 19:56:34 -08:00
2026-11-04 03:40:25 -08:00
2026-11-03 19:56:34 -08:00
2026-11-07 03:28:04 +00:00
2026-11-07 03:28:04 +00:00
2026-10-29 01:44:01 +00:00
2026-10-24 17:05:58 -07:00
2026-10-25 04:05:46 -07:00
2026-10-21 01:16:35 -07:00
2026-11-07 03:28:04 +00:00
2026-11-01 17:53:52 +00:00
2026-10-25 04:05:46 -07:00
2026-10-25 04:05:46 -07:00
2026-10-25 04:05:46 -07:00
2026-11-07 03:28:04 +00:00
2026-11-01 17:53:52 +00:00
2026-10-30 16:35:12 +00:00
2026-11-03 23:59:28 -08:00
2026-10-30 16:35:12 +00:00
2026-10-21 10:21:36 -07:00
2026-11-01 03:14:46 -08:00
2026-11-01 03:14:46 -08:00
2026-11-01 01:24:37 -08:00
2026-10-25 04:05:46 -07:00
2026-10-24 17:05:58 -07:00
2026-10-25 04:05:46 -07:00
2026-09-30 00:42:52 -07:00
2026-11-04 06:01:18 +00:00
2026-11-06 18:17:31 +00:00
2026-10-25 04:05:46 -07:00
2026-10-25 04:05:46 -07:00
2026-10-25 04:05:46 -07:00
2026-11-01 18:40:34 -08:00
2026-10-30 16:35:12 +00:00
2026-11-03 19:56:34 -08:00
2026-10-25 04:05:46 -07:00
2026-11-06 18:16:22 +00:00
2026-10-24 17:35:35 -07:00
2026-10-25 04:05:46 -07:00
2026-11-07 16:51:15 -08:00
2026-11-01 19:31:05 -08:00
2026-10-25 04:05:46 -07:00
2026-10-29 03:55:41 +00:00
2026-10-25 04:05:46 -07:00
2026-11-01 07:38:29 -08:00
2026-10-25 04:05:46 -07:00
2026-11-04 06:01:18 +00:00
2026-10-29 04:13:09 +00:00
2026-10-29 14:24:18 +00:00
2026-11-07 02:11:20 +00:00
2026-11-06 16:44:29 +00:00
2026-11-07 04:41:07 +00:00
2026-11-07 23:14:26 +00:00
2026-11-07 16:51:15 -08:00
2026-11-07 23:14:26 +00:00
2026-11-01 18:07:43 +00:00
2026-11-01 18:07:43 +00:00
2026-11-01 18:38:23 +00:00
2026-11-06 16:44:29 +00:00
2026-11-06 16:44:29 +00:00
2026-11-01 18:38:23 +00:00
2026-11-07 23:14:26 +00:00
2026-11-04 03:40:25 -08:00
2026-11-01 18:38:23 +00:00
2026-11-07 23:14:26 +00:00
2026-11-05 19:29:04 -08:00
2026-11-03 19:56:34 -08:00
2026-11-08 00:21:08 +00:00
2026-10-29 03:55:41 +00:00
2026-11-07 04:55:16 +00:00
2026-10-30 12:35:02 -07:00
2026-11-07 03:28:04 +00:00
2026-11-03 16:36:54 -08:00
2026-11-02 03:14:58 -08:00
2026-11-03 16:36:54 -08:00
2026-11-06 23:39:35 -08:00
2026-11-07 23:27:28 +00:00
2026-10-25 04:05:46 -07:00
2026-11-01 21:08:49 +00:00
2026-10-24 19:37:19 -07:00
2026-11-01 21:23:53 +00:00
2026-10-24 19:37:19 -07:00
2026-10-25 04:05:46 -07:00
2026-10-29 03:55:41 +00:00
2026-11-04 03:40:25 -08:00
2026-11-03 14:19:08 -08:00
2026-11-05 10:39:54 -08:00
2026-11-02 10:25:38 -08:00
2026-11-02 10:25:38 -08:00
2026-10-31 22:33:23 -07:00
2026-11-03 19:56:34 -08:00
2026-11-07 04:55:16 +00:00
2026-11-07 23:20:40 +00:00
2026-11-07 23:20:40 +00:00
2026-11-07 17:10:38 -08:00
2026-11-07 23:43:33 +00:00
2026-10-29 03:55:41 +00:00
2026-11-06 02:08:24 -08:00
2026-10-29 03:55:41 +00:00
2026-11-04 03:40:25 -08:00
2026-11-06 16:46:31 +00:00
2026-11-01 04:29:28 +00:00
2026-11-03 18:01:55 +00:00
2026-11-05 19:29:04 -08:00
2026-11-07 23:32:44 +00:00
2026-10-31 02:01:32 -07:00
2026-11-06 18:17:31 +00:00
2026-11-06 18:17:31 +00:00
2026-10-30 13:48:10 -07:00
2026-11-03 18:01:55 +00:00
2026-11-07 09:37:45 +00:00
2026-11-01 17:53:52 +00:00
2026-11-04 06:01:18 +00:00
2026-11-07 23:20:40 +00:00
2026-11-06 18:17:31 +00:00
2026-11-07 23:20:40 +00:00
2026-11-04 03:40:25 -08:00
2026-11-04 06:01:18 +00:00
2026-11-07 23:20:40 +00:00
2026-11-05 22:57:04 -08:00
2026-11-05 21:09:47 -08:00
2026-10-25 04:05:46 -07:00
2026-10-27 05:51:20 +00:00
2026-11-04 03:40:25 -08:00
2026-11-05 22:27:44 +00:00
2026-11-04 03:40:25 -08:00
2026-11-03 18:02:15 +00:00
2026-11-04 06:01:18 +00:00
2026-11-04 06:01:18 +00:00
2026-11-06 16:57:22 +00:00
2026-11-06 18:17:31 +00:00
2026-11-06 18:17:31 +00:00
2026-10-30 16:35:12 +00:00
2026-10-26 22:34:31 +00:00
2026-11-07 04:57:18 +00:00
2026-11-07 04:57:18 +00:00
2026-11-03 19:56:34 -08:00
2026-10-25 04:05:46 -07:00
2026-10-25 04:05:46 -07:00
2026-11-01 03:14:46 -08:00
2026-11-07 23:34:27 +00:00
2026-11-02 19:41:03 -08:00
2026-11-04 18:01:06 -08:00
2026-11-05 11:25:58 -08:00
2026-11-07 04:55:30 +00:00
2026-11-07 04:55:30 +00:00
2026-11-07 23:34:27 +00:00
2026-11-06 12:42:48 -08:00
2026-11-07 23:45:44 +00:00
2026-11-05 23:06:47 +00:00
2026-11-07 04:55:30 +00:00
2026-11-06 05:12:00 +00:00
2026-11-07 04:55:30 +00:00
2026-11-07 04:55:30 +00:00
2026-11-07 11:35:38 -08:00
2026-11-07 04:55:30 +00:00
2026-11-07 04:55:30 +00:00
2026-11-07 04:55:30 +00:00
2026-11-07 04:55:30 +00:00
2026-11-07 04:55:30 +00:00
2026-11-07 23:34:27 +00:00
2026-11-04 01:39:49 -08:00
2026-11-07 18:31:29 -08:00
2026-11-01 01:24:37 -08:00
2026-11-01 03:14:46 -08:00
2026-11-03 15:16:53 -08:00
2026-11-05 22:42:44 +00:00
2026-11-03 02:00:38 +00:00
2026-11-05 20:44:10 +00:00
2026-11-07 23:34:27 +00:00
2026-11-05 22:08:45 +00:00
2026-11-07 23:40:10 +00:00
2026-11-07 23:40:10 +00:00
2026-11-07 23:45:44 +00:00
2026-11-06 12:42:48 -08:00
2026-11-01 03:14:46 -08:00
2026-11-07 04:55:30 +00:00
2026-10-31 22:33:23 -07:00
2026-11-04 02:40:10 -08:00
2026-11-01 21:33:42 -08:00
2026-11-07 23:32:44 +00:00
2026-11-07 23:32:44 +00:00
2026-11-07 23:32:44 +00:00
2026-11-07 04:55:30 +00:00
2026-11-07 04:55:30 +00:00
2026-10-25 04:05:46 -07:00
2026-11-01 01:24:37 -08:00
2026-10-31 20:45:48 -07:00
2026-10-27 15:34:56 +00:00
2026-11-01 21:33:42 -08:00
2026-10-24 13:22:32 -07:00
2026-10-25 04:05:46 -07:00
2026-11-05 22:42:44 +00:00
2026-11-05 22:42:44 +00:00
2026-11-07 23:32:44 +00:00
2026-10-25 04:05:46 -07:00
2026-10-24 18:26:35 -07:00
2026-10-25 04:05:46 -07:00
2026-11-03 23:59:28 -08:00
2026-11-03 19:56:34 -08:00
2026-10-25 04:05:46 -07:00
2026-11-07 16:51:15 -08:00
2026-11-07 23:39:10 +00:00
2026-11-07 23:39:10 +00:00
2026-11-03 19:12:25 -08:00
2026-11-04 04:51:57 -08:00
2026-11-03 19:56:34 -08:00
2026-11-06 18:17:31 +00:00
2026-11-05 21:09:47 -08:00
2026-11-05 21:09:47 -08:00
2026-11-04 06:01:18 +00:00
2026-10-30 16:35:12 +00:00
2026-10-30 16:35:12 +00:00
2026-09-17 18:58:25 -04:00
2026-10-24 14:43:09 -07:00
2026-10-29 03:55:41 +00:00