fix: show chat errors as visible messages · openclaw/openclaw@bbd2854
openclaw
·
2026-05-31
·
via Recent Commits to openclaw:main
File tree
src/gateway/server-methods
| Original file line number | Diff line number | Diff line change |
|---|
@@ -118,6 +118,15 @@ describe("chat.send error broadcast", () => {
|
118 | 118 | expect.objectContaining({ |
119 | 119 | agentId: "main", |
120 | 120 | state: "error", |
| 121 | +message: expect.objectContaining({ |
| 122 | +role: "assistant", |
| 123 | +content: [ |
| 124 | +expect.objectContaining({ |
| 125 | +type: "text", |
| 126 | +text: expect.stringContaining("LLM timeout"), |
| 127 | +}), |
| 128 | +], |
| 129 | +}), |
121 | 130 | }), |
122 | 131 | ); |
123 | 132 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。