deepseek-ai/deepseek-harness · error · CodeRunFailedError
CODE_RUN_FAILED
CODE_RUN_FAILED
Error message
code run failed (${result.error.kind}): ${result.error.message}${logsText} What it means
Error "code run failed (${result.error.kind}): ${result.error.message}${logsText}" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/core/tools/src/code-mode.ts:641
program: args.code,
bindings: [{
global: 'tools',
functions,
errorClass: { name: 'ToolCallError', memberNameProperty: 'toolName' },
}],
signal: runController.signal,
})
} finally {
// Abort sub-dispatches and drain every in-flight dispatch before
// closing the turn (queued-unstarted ones are abandoned unlogged).
// Binding failures remain observable through their individual promises.
runController.abort('run_code settled')
await drainDispatches()
}
if (result.error) {
const logsText = result.logs.length > 0 ? `\nCaptured output:\n${result.logs.join('\n')}` : ''
throw new CodeRunFailedError(`code run failed (${result.error.kind}): ${result.error.message}${logsText}`)
}
return {
logs: result.logs,
...result.value !== undefined ? { result: result.value } : {},
}
} finally {
exec.signal.removeEventListener('abort', onOuterAbort)
}
},
// The model-authored description is the call's always-visible UI label
// (the bash `description` precedent); the program itself rides rawInput.
presentCall: args => ({
card: 'generic',
title: args.description,
kind: 'execute',
rawInput: args.code,
}),
// Deliberately no presentResult: the generic card fallback keeps thisView on GitHub (pinned to b150a551b8)
When it happens
Trigger: Thrown at packages/core/tools/src/code-mode.ts:641 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/dc524a547d1d7927.
Report an issue: GitHub.