deepseek-ai/deepseek-harness · error · Error
workflow run failed: ${result.error}
Error message
workflow run failed: ${result.error} What it means
Error "workflow run failed: ${result.error}" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/workflow/tool-workflow/src/index.ts:309
const recordsRun = exec.parent === undefined
// The shipped worker-thread engine publishes member events from later
// worker messages, after start() returns and this run record is active.
if (recordsRun) recorder.start(parent.session, run)
// Bridge the tool's abort signal to the run: if the parent step is aborted while the
// script is in flight, cancel the whole run. The signal also enters the engine directly, but
// this local bridge preserves the tool contract even if an implementation ignores it.
const onAbort = (): void => { run.cancel('parent step aborted') }
exec.signal.addEventListener('abort', onAbort, { once: true })
let result: WorkflowResult | undefined
try {
result = await run.result
const error = stopReasonError(result)
if (error !== undefined) {
// Map a non-clean finish to an isError result (the registry turns a
// throw into an isError). Report the reason, not partial output.
throw new Error(error)
}
return {
runId: run.id,
agentsStarted: result.agentsStarted,
result: result.value as JsonValue,
}
} finally {
exec.signal.removeEventListener('abort', onAbort)
try {
// Keep member listeners alive through disposal: an engine may
// synthesize cancelled member endings while reaching quiescence.
await run.dispose()
if (recordsRun) {
/* v8 ignore next -- WorkflowRun.result never rejects by contract, so result is assigned before finally. */
if (result === undefined) throw new Error('workflow run settled without a result')
recorder.finish(run.id, result.stopReason)
}
} finally {View on GitHub (pinned to b150a551b8)
Solutions
- Read the embedded workflow error, fix the cause in the script or environment, and re-run.
When it happens
Trigger: Thrown at packages/workflow/tool-workflow/src/index.ts:309 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24).
Data as JSON: /api/errors/7f1c7fcd04b00616.
Report an issue: GitHub.