Skip to content

feat(response-stream): add per-frame response sessions - #374

Merged
laipz8200 merged 3 commits into
mainfrom
laipz8200/frame-response-sessions
Nov 16, 2026
Merged

laipz8200 merged 3 commits into
mainfrom
laipz8200/frame-response-sessions

Conversation

@laipz8200

Copy link
Copy Markdown
Member

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 answer selector, with one final marker for the complete reply. Define retry, replacement, fallback, and terminal cleanup behavior without replaying displayed text. Answer's ordinary answer and files outputs 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

  • 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
laipz8200 marked this pull request as ready for review November 2, 2026 19:23
@laipz8200
laipz8200 enabled auto-merge (squash) November 2, 2026 19:25
@laipz8200
laipz8200 force-pushed the laipz8200/frame-response-sessions branch from 700c249 to 29d0031 Compare November 16, 2026 03:43
laipz8200 and others added 2 commits November 16, 2026 14:24
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
laipz8200 force-pushed the laipz8200/frame-response-sessions branch from c5cfaaf to 0c940cf Compare November 16, 2026 06:25
@laipz8200
laipz8200 merged commit 069cd55 into main Nov 16, 2026
9 checks passed
@laipz8200
laipz8200 deleted the laipz8200/frame-response-sessions branch November 16, 2026 06:52
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