Repository navigation
feat(response-stream): add per-frame response sessions - #374
Merged
Merged
Conversation
laipz8200
marked this pull request as ready for review
November 2, 2026 19:23
laipz8200
enabled auto-merge (squash)
November 2, 2026 19:25
laipz8200
force-pushed
the
laipz8200/frame-response-sessions
branch
from
November 16, 2026 03:43
700c249 to
29d0031
Compare
4 of 7 tasks
Capture frame values and traversal in the external response filter and discover child Answer and End templates from retained workflow definitions. Stream child replies with reserved execution identities and independent source-attempt and template-occurrence cursors. Settle retries, committed replacements, and terminal failures without replaying displayed values. Preserve ordinary Answer outputs and raw engine chunks, retain observed root skips in compatible v2 snapshots, and explicitly reject incomplete child snapshot and resumption support. Refs #356
laipz8200
force-pushed
the
laipz8200/frame-response-sessions
branch
from
November 16, 2026 06:25
c5cfaaf to
0c940cf
Compare
QuantumGhost
approved these changes
Nov 16, 2026
This was referenced Nov 16, 2026
2 of 3 tasks
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 is package D of #356, following merged prerequisites #365 and #366. Full parallel and nested response ordering (E) and child response pause/resume (F) remain separate stages.
Related Issue
Refs #356
Summary
Answer and End templates inside Loop and sequential Iteration now get independent response-filter sessions. Discover child templates from retained graph definitions, retain detached frame values and committed replacements, and follow frame-qualified traversal without constructing executable child nodes or calling their factories.
Keep child source executions, retry attempts, and template-occurrence cursors separate. Emit child Answer text under its reserved execution identity and
answerselector, with one final marker for the complete reply. Define retry, replacement, fallback, and terminal cleanup behavior without replaying displayed text. Answer's ordinaryanswerandfilesoutputs and the engine's raw chunks remain unchanged.Preserve root event shapes and v1/v2 snapshot loading, adding optional observed skipped-edge state to root v2 snapshots. Explicitly reject child response snapshots and resumption until complete support is available. All response assembly, buffering, and progress remain in the external filter's private package.
Checklist
!