fix(server): omit redundant tombstone reconciliation discards

This commit is contained in:
cabbage committed 2026-11-16 15:18:07 +00:00
1 parent 9e7c409ba7
commit 86a9cfdd72
9 files changed
+228 -3

No files matched your search

+10
View File
@@ -147,6 +147,16 @@ exact ignored `dist/` directory after preserving any evidence.
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.
- **Reconnect fails after accumulating command history:** the server used to
echo the client's entire compact tombstone ledger as terminal-discard UUIDs.
Roughly 860 UUIDs plus envelope overhead exceed a legacy 32 KiB reader, even
when the commands produced no large output. The correction validates and
reconciles tombstones normally, then omits redundant discard instructions;
it retains history and still authorizes genuinely retained terminal bodies.
This can be backported independently of held auto-chunking. Keep client
spool/tombstones intact, back up the full server state before applying the
isolated fix, and verify both reconnect and a fresh command's terminal result.
Large genuine action lists still require an updated 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