Repository navigation
feat(response-stream): order parallel and nested replies - #401
Merged
Merged
Conversation
Keep reply presentation in a filter-owned frame and container hierarchy. Reserve nested groups before their first reply, stream the eligible response contiguously, and retain later item text until preceding frames drain. Settle failed containers before releasing buffered siblings, replace wholly hidden retry attempts without rereading other values, and preserve root-only snapshot behavior around containers without replies and empty invocations. Keep child ordering snapshots and resumption explicitly unsupported for stage F.
laipz8200
marked this pull request as ready for review
November 17, 2026 07:56
QuantumGhost
approved these changes
Nov 18, 2026
4 of 7 tasks
QuantumGhost
added a commit
to QuantumGhost/graphon
that referenced
this pull request
Nov 18, 2026
Merge upstream main reply ordering while retaining per-response incremental gates, frame-owned first edge decisions, v3 snapshot compatibility and nominal node/edge IDs. Keep the interleaved-frame regression aligned with ordered presentation: opening B cannot open A, and B waits until frame A finishes. Validation: 1402 tests passed; static checks passed. Historical filter v1/v2 pause checkpoints continue to restore with the current v3 writer. Refs: langgenius#398, langgenius#401 Assisted-by: Codex:gpt-6.1-sol
2 of 3 tasks
2 of 3 tasks
3 tasks done
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
Package E of #356, following merged prerequisites A (#366), B (#365), and D (#374). Complete child pause/resume and snapshot serialization remain stage F.
Related Issue
Refs #356
Summary
When parallel Iteration items finish out of order, stream the eligible reply live and buffer later replies in numeric item order. Reserve nested container groups at node start and keep each root or child reply contiguous through its suffix. A reply's final marker does not release its frame; following replies wait for the frame, its descendants, and pending text to finish.
Keep the hierarchy, pending text, and retry handling inside the response filter's private package. Drain replies before successful or partially successful graph termination, discard hidden replies on failure or abort, and replace wholly hidden retry attempts without changing already displayed text or unrelated captured values.
Preserve ordinary Answer outputs and files, raw execution delivery, result-array order, and root chunk and snapshot compatibility. Containers without descendant replies do not delay independent root responses. Pending child-response reservations and child resumption remain explicitly unsupported by the root-only snapshot format.
Checklist
!