fix(gateway): flush chat delta before tool-start events (#39128)

Co-authored-by: john <john.j@min123.net>
This commit is contained in:
Peter Steinberger
2026-03-07 19:46:04 +00:00
parent e4497234c7
commit 43b36bfe8c
3 changed files with 131 additions and 29 deletions

View File

@@ -264,6 +264,7 @@ Docs: https://docs.openclaw.ai
- Agents/OpenAI WS compat store flag: omit `store` from `response.create` payloads when model compat sets `supportsStore: false`, preventing strict OpenAI-compatible providers from rejecting websocket requests with unknown-field errors. (#39113) Thanks @scoootscooob.
- Config/validation log sanitization: sanitize config-validation issue paths/messages before logging so control characters and ANSI escape sequences cannot inject misleading terminal output from crafted config content. (#39116) Thanks @powermaster888.
- Agents/compaction counter accuracy: count successful overflow-triggered auto-compactions (`willRetry=true`) in the compaction counter while still excluding aborted/no-result events, so `/status` reflects actual safeguard compaction activity. (#39123) Thanks @MumuTW.
- Gateway/chat delta ordering: flush buffered assistant deltas before emitting tool `start` events so pre-tool text is delivered to Control UI before tool cards, avoiding transient text/tool ordering artifacts in streaming. (#39128) Thanks @0xtangping.
## 2026.3.2