Repository navigation
Conversation
Exercise cancellation and abrupt worker exit through the public Runner and a SQLite session. Verify the resumed model sees the original call and response across parallel branches, repeated invocations and loop iterations. Refs google#7719
Restore the transient single-turn input before the earlier events for the same invocation, node path, branch and isolation scope. The model then receives the saved tool call and response when the Runner resumes. Credit to widechaos for identifying the input-ordering problem in google#7719.
ZaidLT
marked this pull request as ready for review
November 22, 2026 16:40
Author
|
I ran the full unit-test suite on my fork at |
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.
Link to issue
Refs #7719. Related to #7738.
When a single-turn agent resumes inside a Workflow, its tool call and response can be present in the session but missing from the next model request. The wrapper appends the transient node input after the saved tool events, so the model sees only the original input.
This patch inserts that input before the first event for the same invocation, full node path, branch and isolation scope. The existing
resume_inputsguard still handles confirmation separately.Thanks to @widechaos for diagnosing the ordering issue and suggesting a separate PR. Both patches touch the insertion point. The Workflow/resume owners can choose the landing order. The earlier checkpoint-provenance question remains open separately.
Testing plan
To reproduce the eight new cases from a development checkout: