fix(agents): preserve sessions fallback errors · openclaw/openclaw@7986917
vincentkoc
·
2026-05-27
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -231,7 +231,9 @@ async function startAgentRun(params: {
|
231 | 231 | } catch (err) { |
232 | 232 | const queueSummary = |
233 | 233 | formatEmbeddedPiQueueFailureSummary(queueOutcome) ?? "active run queue rejected"; |
234 | | -throw new Error(`${queueSummary}; fallback_failed error=${formatErrorMessage(err)}`); |
| 234 | +throw new Error(`${queueSummary}; fallback_failed error=${formatErrorMessage(err)}`, { |
| 235 | +cause: err, |
| 236 | +}); |
235 | 237 | } |
236 | 238 | } |
237 | 239 | const response = await params.callGateway<{ runId: string }>({ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。