mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-30 00:28:42 +00:00
fix(agents): preserve sessions_send fallback cause
This commit is contained in:
@@ -231,7 +231,9 @@ async function startAgentRun(params: {
|
||||
} catch (err) {
|
||||
const queueSummary =
|
||||
formatEmbeddedPiQueueFailureSummary(queueOutcome) ?? "active run queue rejected";
|
||||
throw new Error(`${queueSummary}; fallback_failed error=${formatErrorMessage(err)}`);
|
||||
throw new Error(`${queueSummary}; fallback_failed error=${formatErrorMessage(err)}`, {
|
||||
cause: err,
|
||||
});
|
||||
}
|
||||
}
|
||||
const response = await params.callGateway<{ runId: string }>({
|
||||
|
||||
Reference in New Issue
Block a user