fix(ci): clear extension lint regressions · openclaw/openclaw@015c6b4
vincentkoc
·
2026-06-01
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1224,7 +1224,7 @@ function createRawOllamaStreamFn(
|
1224 | 1224 | id: model.id, |
1225 | 1225 | reasoning: model.reasoning, |
1226 | 1226 | }; |
1227 | | -const shouldEmitThinking = model.reasoning !== false; |
| 1227 | +const shouldEmitThinking = model.reasoning || !Object.hasOwn(model, "reasoning"); |
1228 | 1228 | const visibleContentSanitizer = createOllamaVisibleContentSanitizer(model.id); |
1229 | 1229 | const cooperativeScheduler = createOllamaStreamCooperativeScheduler(options?.signal); |
1230 | 1230 | let streamStarted = false; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1396,7 +1396,7 @@ export async function runMantisSlackDesktopSmoke(
|
1396 | 1396 | timer.updatePhaseStatus("crabbox.remote_run", "accepted"); |
1397 | 1397 | } |
1398 | 1398 | if (remoteRunError && !gatewaySetupCompleted && !slackQaCompleted) { |
1399 | | -throw remoteRunError; |
| 1399 | +throw toErrorObject(remoteRunError); |
1400 | 1400 | } |
1401 | 1401 | if (gatewaySetup && !gatewaySetupCompleted) { |
1402 | 1402 | throw new Error("Slack desktop gateway setup did not report a live OpenClaw gateway."); |
@@ -1511,3 +1511,7 @@ export async function runMantisSlackDesktopSmoke(
|
1511 | 1511 | } |
1512 | 1512 | } |
1513 | 1513 | } |
| 1514 | + |
| 1515 | +function toErrorObject(error: unknown): Error { |
| 1516 | +return error instanceof Error ? error : new Error(String(error)); |
| 1517 | +} |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -781,7 +781,7 @@ export async function runMantisTelegramDesktopBuilder(
|
781 | 781 | timer.updatePhaseStatus("crabbox.remote_run", "accepted"); |
782 | 782 | } |
783 | 783 | if (remoteRunError && !gatewaySetupCompleted) { |
784 | | -throw remoteRunError; |
| 784 | +throw toErrorObject(remoteRunError); |
785 | 785 | } |
786 | 786 | if (gatewaySetup && !gatewaySetupCompleted) { |
787 | 787 | throw new Error("Telegram desktop builder did not report a live OpenClaw gateway."); |
@@ -885,3 +885,7 @@ export async function runMantisTelegramDesktopBuilder(
|
885 | 885 | } |
886 | 886 | } |
887 | 887 | } |
| 888 | + |
| 889 | +function toErrorObject(error: unknown): Error { |
| 890 | +return error instanceof Error ? error : new Error(String(error)); |
| 891 | +} |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -237,10 +237,14 @@ async function runCommandWithExternalOutput(params: {
|
237 | 237 | }, |
238 | 238 | }); |
239 | 239 | if (deferredError) { |
240 | | -throw deferredError; |
| 240 | +throw toErrorObject(deferredError); |
241 | 241 | } |
242 | 242 | } |
243 | 243 | |
| 244 | +function toErrorObject(error: unknown): Error { |
| 245 | +return error instanceof Error ? error : new Error(String(error)); |
| 246 | +} |
| 247 | + |
244 | 248 | function buildVisualDriverArgs(params: { |
245 | 249 | browserUrl: string; |
246 | 250 | crabboxBin: string; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。