fix(server): release retained plugin streaming snapshots (#7675)

Release cumulative plugin snapshots after adapter attachment and retain canonical replay items. Preserve Unicode text, root/child ordering and current tool state; release history on close.

Co-authored-by: suntianc <suntc8985@gmail.com>
This commit is contained in:
suntianc
2026-10-28 20:14:12 +07:00
committed by GitHub
co-authored by suntianc
parent 8537709e72
commit 33faacc055
6 changed files with 423 additions and 24 deletions
+5
View File
@@ -10,6 +10,11 @@ then replaces the previous tool state or merges into the current text item. Inte
are never retained for history or catch-up. Provider history is the durable transcript authority
and rebuilds the projection when an agent resumes.
Pagination bounds each read, not total resident history. Active and idle agents retain their
projected transcript; archive releases it and later history reads rebuild it from the provider.
Streaming overhead must remain proportional to the retained transcript. Cumulative text snapshots
must be released after their deltas have been consumed.
The invariants are:
> A continuously subscribed client applies every committed row in order. Opening or resuming an