DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.
Merge branch 'main' into fix/code-hygiene
hairyfb79574ac96cf
diff --cc src/store/modules/harness/store.tsindex 01d179eb,4d1a75ef..30c53914--- a/src/store/modules/harness/store.ts+++ b/src/store/modules/harness/store.ts@@@ -120,9 -121,18 +120,12 @@@ async function readServiceLogTail(): Pr}}-/** 从日志行中挑出真正的错误行(命中错误标记,最多 8 行);没有命中则退回最后 8 行 */-function pickErrorLines(lines: string[]): string[] {- const errored = lines.filter(line => ERROR_LINE_MARKERS.test(line)).slice(0, 8)- return errored.length > 0 ? errored : lines.slice(-8)-}-/** 失败时把服务日志的真实错误行与冲突提示挂到错误对象上 */async function attachStartupDiagnostics(err: unknown): Promise<StartupError> {- const startupError = err as StartupError+ // Tauri `invoke` 对 `Result<_, String>` 命令的 rejection 是裸字符串,+ // 必须先归一化为 Error 对象,否则在其上赋属性(ESM 严格模式)会抛+ // `TypeError: Cannot create property ... on string`,反而遮蔽真实错误。+ const startupError: StartupError = err instanceof Error ? err : new Error(String(err))if (!startupError.logs) {const lines = await readServiceLogTail()startupError.logLines = lines