Skip to content

fix: SSE 同一 step 事件合并为一条消息#44

Merged
PolarSnowLeopard merged 1 commit intomasterfrom
fix/sse-step-merge
Apr 10, 2026
Merged

fix: SSE 同一 step 事件合并为一条消息#44
PolarSnowLeopard merged 1 commit intomasterfrom
fix/sse-step-merge

Conversation

@PolarSnowLeopard
Copy link
Copy Markdown
Collaborator

修复同一 step 的 think/action/result 分三次发给前端的问题。

Made with Cursor

v2 的 Agent.run() 逐事件 yield,导致前端收到同一 step 的
三条独立消息,在 UI 上拆成三个卡片。

修复:在 SSE 层缓冲同一 step 的事件,合并后再发送,
与 v1 行为一致(每 step 一条包含 thought + action + action_result)。

Made-with: Cursor
@PolarSnowLeopard PolarSnowLeopard merged commit 3922a73 into master Apr 10, 2026
@PolarSnowLeopard PolarSnowLeopard deleted the fix/sse-step-merge branch April 10, 2026 11:44
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.

1 participant