fix(server): keep script chunks within legacy client read limits

This commit is contained in:
cabbage committed 2026-11-09 08:21:18 +00:00
1 parent 1b5c6dbf98
commit 474afb3484
5 files changed
+107 -1

No files matched your search

+6
View File
@@ -136,6 +136,12 @@ exact ignored `dist/` directory after preserving any evidence.
Preserve spool/history: rebooting cannot remove a replayable oversized event.
New server logs include bounded read/reconciliation errors and an
`agent_message_too_big` counter; new clients advertise the actual build version.
If the server reports receiving that close code from an older client, the
client rejected a server-to-client frame. Outbound script chunks target
16 KiB (or a lower configured chunk ceiling), preserving offsets/digests and
the 1 MiB send window, so pending uploads can reach older clients. This does
not lower the server's inbound limits. Large inline command text, stdin, or
reconciliation responses still require the corrected client reader.
- **`terminal command cannot accept script data` during reconnect:** the server
may replay an upload while the client is still delivering that command's
terminal events. Corrected clients ignore these frames only after verifying