Repository navigation
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
562f327 to
c6309d1
Compare
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
c6309d1 to
92ae3b2
Compare
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
92ae3b2 to
dfe7681
Compare
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
dfe7681 to
9d8e454
Compare
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
9d8e454 to
fb40848
Compare
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
| llm_usage=usage, | ||
| ), | ||
| ) | ||
| yield from self._emit_final_stream_events(state) |
There was a problem hiding this comment.
Delaying is_final here lets an Answer render the configured default when a Tool emits no text and get_usage() fails. Two other workflows can now lose the rest of the reply. In both, Answer 2 emits the literal |NEXT.
- Failure branch —
Start → Tool → [fail-branch] → Answer 1 → Answer 2. Answer 1 renders[{{#tool.text#}}]END. The Tool streamspartial, thenget_usage()raises and the engine takes the failure branch. The client used to receive[partial]END|NEXT. It now receives only[partial. - Successful retry —
Start → Tool (one retry) → Answer 1 → Answer 2. Answer 1 renders[{{#tool.excerpt#}}]END. The first attempt streamsexcerpt="part", thenget_usage()raises. The retry succeeds withexcerpt="saved"andstream=False, so it sends no final chunk forexcerpt. The final graph output is[saved]END|NEXT, but the client receives only[part.
Both Answer nodes finish in each workflow. The root filter is still waiting on the Tool field, so it never emits Answer 1’s ]END or Answer 2’s |NEXT. Could it close the open field when the Tool takes the failure branch or its retry succeeds? Root filter’s terminal-event handling
I reviewed these cases with Codex (gpt-6.2-astra).
There was a problem hiding this comment.
One detail on the successful retry in the comment above: the retry commits excerpt="saved" with stream=False, but the root template has already streamed part, so it skips the variable-pool lookup and keeps waiting for excerpt to close. A regression test could assert that the client receives [part]END|NEXT while the final Answer is [saved]END|NEXT. Closing excerpt when the retry succeeds would preserve both outcomes and still let a retry stream more chunks while it is running. Root template lookup and completion
Drafted with Codex (gpt-6.2-astra).
fb40848 to
6bdd9d6
Compare
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
Close referenced streams when a node finishes through a failure branch or a successful retry leaves an earlier stream open. Preserve streamed text and read committed outputs for closed fields without buffered text. Assisted-by: Codex:gpt-6.2-sol
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
Important
The related fail-branch case is tracked in #255.
Related Issue
Closes #413
Summary
When a root node uses its defaults, the reply keeps any text the node sent and moves on.
Fields that sent no text show their saved value, or stay empty if there’s no value.
Checklist
!