deepseek-ai/deepseek-harness · error · Error
${error}${diagnostic}${partial}
Error message
${error}${diagnostic}${partial} What it means
Error "${error}${diagnostic}${partial}" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/subagent/tool-subagent/src/index.ts:183
type ForegroundToolResult = {
readonly kind: 'foreground'
readonly runId: SubagentRun['id']
readonly output: JsonValue[]
}
/**
* Collect and release one foreground run without letting disposal replace an
* independent result failure.
*/
async function settleForegroundRun(run: SubagentRun): Promise<ForegroundToolResult> {
const [execution] = await Promise.allSettled([
run.result.then((result): ForegroundToolResult => {
const error = stopReasonError(result)
if (error !== undefined) {
// The registry converts this throw to isError; partial output is not
// success, but the preserved partial answer still reaches the parent.
throw new Error(withDiagnosticAndPartialText(error, result))
}
return {
kind: 'foreground',
runId: run.id,
// Content blocks already cross durable JSON boundaries elsewhere;
// the registry performs the authoritative lossless snapshot here.
output: result.output as unknown as JsonValue[],
}
}),
])
const [disposal] = await Promise.allSettled([Promise.resolve().then(() => run.dispose())])
if (execution.status === 'rejected') {
if (disposal.status === 'rejected') {
throw new AggregateError(
[execution.reason, disposal.reason],
`subagent run failed: ${String(execution.reason)}; dispose failed: ${String(disposal.reason)}`,
)
}View on GitHub (pinned to b150a551b8)
Solutions
- Read the error, diagnostic, and partial-output parts of the message and fix the reported subagent failure.
When it happens
Trigger: Thrown at packages/subagent/tool-subagent/src/index.ts:183 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/defa61c2ec4d8bb2.
Report an issue: GitHub.