{"record":{"id":"0b0331eb64d6964d","repo":"deepseek-ai/deepseek-harness","slug":"acp-assistant-output-conversion-failed-errorch","errorCode":null,"errorMessage":"acp: assistant output conversion failed: ${errorChain(error)}","messagePattern":"acp: assistant output conversion failed: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/acp/acp/src/index.ts","lineNumber":243,"sourceCode":"    try {\n      if (event.type === 'assistant/message') {\n        const inflight = record.inflight?.turn === event.data.turn ? record.inflight : undefined\n        const previous = record.outputTail\n        const delivery = previous.then(async () => {\n          for (const block of event.data.message.content) {\n            const content = await assistantBlockToAcp(ctx, block)\n            if (content === undefined) continue\n            await notify({\n              sessionId: record.agent.session.id,\n              update: { sessionUpdate: 'agent_message_chunk', content },\n            })\n          }\n        })\n        record.outputTail = delivery.catch((error: unknown) => {\n          // assistantBlockToAcp owns conversion failures and always throws Error.\n          const failure = error as Error\n          if (inflight !== undefined) inflight.outputError ??= failure\n          logger.warn(`acp: assistant output conversion failed: ${errorChain(error)}`)\n        })\n      }\n    } finally {\n      const inflight = record.inflight\n      if (inflight !== undefined && event.type === 'turn/end' && inflight.turn === event.data.turn) {\n        inflight.endReason = event.data.reason\n      }\n    }\n  })\n\n  ctx.on('agent/inbox/claimed', ({ agent, message, turn }) => {\n    const record = ownedRecord(agent)\n    const inflight = record?.inflight\n    if (inflight !== undefined && inflight.messageId === message.id) inflight.turn = turn\n  })\n\n  ctx.on('agent/error', ({ agent, turn, error }) => {\n    const record = ownedRecord(agent)","sourceCodeStart":225,"sourceCodeEnd":261,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/acp/acp/src/index.ts#L225-L261","documentation":"Error \"acp: assistant output conversion failed: ${errorChain(error)}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/acp/acp/src/index.ts:243 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped error chain and fix the assistant output that failed conversion (unsupported content part)."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}