Skip to content

feat(response-stream): preserve replies across pause and resume - #412

Merged
41tair merged 6 commits into
mainfrom
laipz8200/graphon-356-filter-resume
Dec 3, 2026
Merged

41tair merged 6 commits into
mainfrom
laipz8200/graphon-356-filter-resume

Conversation

@laipz8200

@laipz8200 laipz8200 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

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

  • Preserve partially displayed replies and buffered later replies across same-instance resume and paired engine/filter restoration. Snapshots retain frame values, templates, source attempts, occurrence cursors, pending replies, and nested numeric display order, including replies whose execution frames have been removed.
  • Preserve progress when the same run is initialized again or restored frames are observed again; reset for a new run and reject missing or mismatched saved progress before replacing live state. Rebind host file adapters when restoring.
  • Retain v1/v2/v3 root migration. Because those snapshots cannot establish child display history, suppress child presentation for the restored legacy run, including later rounds.

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

  • This pull request links the issue it resolves or advances
  • This pull request title follows Conventional Commits, and any breaking change is marked with !
  • If CLA Assistant prompted me, I signed CLA.md in the pull request conversation

laipz8200 and others added 2 commits November 18, 2026 16:01
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.
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.
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
laipz8200 marked this pull request as ready for review December 2, 2026 02:33
@41tair
41tair merged commit 5d00f29 into main Dec 3, 2026
9 checks passed
@41tair
41tair deleted the laipz8200/graphon-356-filter-resume branch December 3, 2026 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants