修之:存本源应答终局于控御界面 · openclaw/openclaw@5e28574
shakkernerd
·
2026-05-24
·
via Recent Commits to openclaw:main
| 原文行号 | 差异行号 | 差异行变 |
|---|
@@ -693,9 +693,15 @@ function handleTerminalChatEvent(
|
693 | 693 | }); |
694 | 694 | } |
695 | 695 | } |
696 | | -// Reload history when tools were used so the persisted tool results |
697 | | -// replace the now-cleared streaming state. |
| 696 | +// Reload history when tools were used only if the terminal event did not carry |
| 697 | +// a renderable assistant message. Source-reply finals already contain the UI |
| 698 | +// response; an immediate transcript reload replaces the optimistic user bubble |
| 699 | +// with the persisted copy and causes a visible disappear/reappear flicker. |
698 | 700 | if (hadToolEvents && state === "final") { |
| 701 | +if (activeRunIdBeforeEvent && !shouldReloadHistoryForFinalEvent(payload)) { |
| 702 | +flushQueue(); |
| 703 | +return false; |
| 704 | +} |
699 | 705 | const completedRunId = runId ?? null; |
700 | 706 | void loadChatHistory(host as unknown as ChatState).finally(() => { |
701 | 707 | if (completedRunId && host.chatRunId && host.chatRunId !== completedRunId) { |
|
此內容由慣性聚合(RSS閱讀器)自動聚合整理,僅供閱讀參考。 原文來自 — 版權歸原作者所有。