Skip to content

fix(response-stream): show polling results and repeated variables in replies - #395

Merged
QuantumGhost merged 3 commits into
mainfrom
fix/llm-response-final-marker
Nov 25, 2026
Merged

QuantumGhost merged 3 commits into
mainfrom
fix/llm-response-final-marker

Conversation

@WH-2099

@WH-2099 WH-2099 commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Important

Assigning to a node output between reads is being discussed in #24.
#435 tracks missing text when two replies share a stream.

Related Issue

Refs #389

Summary

A polling model that returns done now shows Reply: done!.
With {{#llm.text#}}/{{#llm.text#}}, the reply adds the second done after the model stream closes, so you get done/done.

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

@WH-2099 WH-2099 self-assigned this Nov 13, 2026
@WH-2099
WH-2099 marked this pull request as ready for review November 13, 2026 11:38
Copilot AI balanced review requested due to automatic review settings November 13, 2026 11:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@WH-2099
WH-2099 force-pushed the fix/llm-response-final-marker branch from 5c727d8 to eabd9f8 Compare November 17, 2026 08:37
Copilot AI balanced review requested due to automatic review settings November 17, 2026 08:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@laipz8200 laipz8200 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be better to modify the LLM node to send a complete output as a chunk.

@WH-2099
WH-2099 force-pushed the fix/llm-response-final-marker branch from eabd9f8 to c153b91 Compare November 17, 2026 20:14
Copilot AI balanced review requested due to automatic review settings November 17, 2026 20:14
@WH-2099 WH-2099 changed the title fix(response-stream): preserve complete LLM results in answers fix(llm): send complete results in the final text chunk Nov 17, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copilot AI balanced review requested due to automatic review settings November 18, 2026 07:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the changes preserving complete LLM results in streamed Answers.

No open issues 🎉

Review effort: Balanced

@WH-2099 WH-2099 changed the title fix(llm): send complete results in the final text chunk fix(response-stream): show complete LLM results in replies Nov 18, 2026
@WH-2099
WH-2099 force-pushed the fix/llm-response-final-marker branch from 305c9d6 to 4df5f63 Compare November 18, 2026 17:47
Copilot AI balanced review requested due to automatic review settings November 18, 2026 17:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@QuantumGhost

QuantumGhost commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

I would suggest only fix the following two problems and keep the PR small:

  • yield polling results correctly in replies.
  • fix the problem caused by referring one variable twice (E.G. {{#llm.text#}}/{{#llm.text#}})

I’d defer handling the case where a node output changes between two reads until we agree on the assignment semantics in #24. cc @laipz8200

@laipz8200

Copy link
Copy Markdown
Member

I’d defer handling the case where a node output changes between two reads until we agree on the assignment semantics in #24.

agree.

@WH-2099
WH-2099 force-pushed the fix/llm-response-final-marker branch from 4df5f63 to 02e7e19 Compare November 24, 2026 09:32
Copilot AI balanced review requested due to automatic review settings November 24, 2026 09:32
@WH-2099 WH-2099 changed the title fix(response-stream): show complete LLM results in replies fix(response-stream): show polling results and repeated variables in replies Nov 24, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copilot AI balanced review requested due to automatic review settings November 24, 2026 18:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@QuantumGhost
QuantumGhost merged commit 94109ce into main Nov 25, 2026
10 checks passed
@QuantumGhost
QuantumGhost deleted the fix/llm-response-final-marker branch November 25, 2026 06:34
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.

4 participants