fix(agui): use unique message IDs for discontinuous text segments - #3010
Open
ZHCHJ888 wants to merge 2 commits into
Open
fix(agui): use unique message IDs for discontinuous text segments#3010ZHCHJ888 wants to merge 2 commits into
ZHCHJ888 wants to merge 2 commits into
Conversation
Collaborator
|
不只是 text,reasoning 也有同样的问题哈 |
Contributor
Author
收到老师,那我按相同思路为连续 reasoning 段生成独立的 blockId,并补充回归测试,预计改动量不大,感谢您审阅和提醒 |
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Contributor
Author
|
@jujn 老师,我补齐 reasoning 场景并增加了相关回归测试了,等您有空能麻烦再帮忙看一下吗 |
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.
AgentScope-Java Version
2.0.3-SNAPSHOT
Description
Fixes #2988.
When a single model call emits text, then a tool call, then more text, the core previously reused the same text block ID. The AG-UI adapter consequently reused an already-ended message ID and emitted the second
TEXT_MESSAGE_CONTENTwithout a matchingTEXT_MESSAGE_START.This change:
text,text-2, ...);text -> tool call -> textsequence.Testing
ReActAgentNewLoopReplyTest: 14 passed, 0 failed.GracefulShutdownTest: 50 passed independently after an unrelated suite-order state leak was observed during an exclusion rerun.Checklist