Repository navigation
feat(response-stream): preserve replies across pause and resume - #412
Merged
Merged
Conversation
Persist complete frame sessions and hierarchical reply order in a version-owned v4 filter snapshot, retaining pending replies after execution frame removal. Keep source attempts, occurrence cursors, captured values, and display positions so a paired pause snapshot resumes without replaying visible child text. Preserve same-run progress across filter-chain initialization and repeated frame observations, reject mismatched progress atomically, and reset for a new run. Keep legacy v1/v2 root migration while suppressing ambiguous child presentation for the remainder of a restored legacy run. Rebind host file adapters on restore. Document the drained paired-snapshot boundary and retain frozen legacy fixtures. Refs #356; follows #401.
2 of 3 tasks
Merge main at eb75e38 into the pause/resume branch without rewriting the existing PR commits. Preserve first consumed edge decisions and legacy residual paths in v4 frame snapshots while retaining v1/v2/v3 readers and child reply progress. Reject mixed gating state before replacing saved progress and keep current snapshots independent of legacy codecs. Reconcile retained-state accounting with the caller-owned filter context and update the affected compatibility and ownership documentation. Refs #356, #400, #412.
Review all eight overdue knowledge pages against current implementation, regression tests, development tooling, workflows, and example entry points. Record the completed reviews in last_checked metadata to satisfy the seven-day documentation review requirement.
Merge main at 66311bd, including its documentation cleanup and Python installation guidance. Preserve v4 root and child pause/resume contracts, retain the caller-owned context exclusion in retained-memory guidance, and resolve review metadata conflicts using the newer existing records.
2 of 3 tasks
3 of 16 tasks
Merge main through 58e5c31 to bring the latest reply streaming fixes and external wait support into the v4 checkpoint branch. Keep main's newer documentation review dates and preserve the exclusion of the caller's context from retained filter memory.
laipz8200
marked this pull request as ready for review
December 2, 2026 02:33
41tair
approved these changes
Dec 3, 2026
This was referenced Dec 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
This delivers stage F of #356 on top of merged stage E (#401). Release work and the Dify integration remain separate.
The filter writes v4 snapshots and preserves the reachability behavior merged in #400, including consumed edge decisions and migrated legacy path conditions.
Related Issue
Refs #356. Follows #401.
Summary
Save both snapshots after fully consuming the filtered run through a quiescent pause. Runtime state alone cannot recover reply progress; the guarantee does not cover network acknowledgements or crash recovery.
Checklist
!