fix(ci): preserve lint cleanup behavior

This commit is contained in:
Vincent Koc
2026-06-01 02:56:19 +02:00
parent 1d4277b071
commit efd5d07734
4 changed files with 4 additions and 4 deletions

View File

@@ -1224,7 +1224,7 @@ function createRawOllamaStreamFn(
id: model.id,
reasoning: model.reasoning,
};
const shouldEmitThinking = model.reasoning || !Object.hasOwn(model, "reasoning");
const shouldEmitThinking = model.reasoning ?? true;
const visibleContentSanitizer = createOllamaVisibleContentSanitizer(model.id);
const cooperativeScheduler = createOllamaStreamCooperativeScheduler(options?.signal);
let streamStarted = false;

View File

@@ -1513,5 +1513,5 @@ export async function runMantisSlackDesktopSmoke(
}
function toErrorObject(error: unknown): Error {
return error instanceof Error ? error : new Error(String(error));
return error instanceof Error ? error : new Error(formatErrorMessage(error));
}

View File

@@ -887,5 +887,5 @@ export async function runMantisTelegramDesktopBuilder(
}
function toErrorObject(error: unknown): Error {
return error instanceof Error ? error : new Error(String(error));
return error instanceof Error ? error : new Error(formatErrorMessage(error));
}

View File

@@ -242,7 +242,7 @@ async function runCommandWithExternalOutput(params: {
}
function toErrorObject(error: unknown): Error {
return error instanceof Error ? error : new Error(String(error));
return error instanceof Error ? error : new Error(formatErrorMessage(error));
}
function buildVisualDriverArgs(params: {