style: apply oxlint auto-formatting · openclaw/openclaw@89f2326
doedewaldt
·
2026-05-12
·
via Recent Commits to openclaw:main
File tree
src/agents/pi-embedded-runner
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2521,10 +2521,7 @@ export async function runEmbeddedPiAgent(
|
2521 | 2521 | // Timeout aborts can leave the run without payloads or with only a |
2522 | 2522 | // partial assistant fragment. Emit an explicit timeout error instead, |
2523 | 2523 | // preserving any tool payloads that succeeded before the timeout. |
2524 | | -if ( |
2525 | | -timedOutDuringPrompt && |
2526 | | -!hasMessagingToolDeliveryEvidence(attempt) |
2527 | | -) { |
| 2524 | +if (timedOutDuringPrompt && !hasMessagingToolDeliveryEvidence(attempt)) { |
2528 | 2525 | const timeoutText = idleTimedOut |
2529 | 2526 | ? "The model did not produce a response before the model idle timeout. " + |
2530 | 2527 | "Please try again, or increase `models.providers.<id>.timeoutSeconds` for slow local or self-hosted providers." |
@@ -2544,7 +2541,7 @@ export async function runEmbeddedPiAgent(
|
2544 | 2541 | }); |
2545 | 2542 | return { |
2546 | 2543 | payloads: [ |
2547 | | - ...(hasPartialAssistantTextAfterPromptTimeout ? [] : (payloadsWithToolMedia || [])), |
| 2544 | + ...(hasPartialAssistantTextAfterPromptTimeout ? [] : payloadsWithToolMedia || []), |
2548 | 2545 | { |
2549 | 2546 | text: timeoutText, |
2550 | 2547 | isError: true, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。