{"record":{"id":"f1d75d27663dcbdc","repo":"deepseek-ai/deepseek-harness","slug":"unsupported-content","errorCode":"UNSUPPORTED_CONTENT","errorMessage":"compaction summary cannot contain image output","messagePattern":"compaction summary cannot contain image output","errorType":"exception","errorClass":"LlmError","httpStatus":null,"severity":"error","filePath":"packages/compaction/compaction-basic/src/summarizer.ts","lineNumber":221,"sourceCode":"      error.code = finish.failure.code\n      return error\n    }\n    case 'max-tokens': {\n      const error = new Error('summarization truncated at the token cap (incomplete checkpoint)') as Error & { code?: string }\n      error.code = 'MAX_TOKENS'\n      return error\n    }\n    default:\n      return undefined\n  }\n}\n\n/** Reject visual output and keep only text before synthesizing a user message. */\nfunction summaryText(\n  blocks: readonly ContentBlock[],\n): Array<Extract<ContentBlock, { type: 'text' }>> {\n  if (contentHasImage(blocks)) {\n    throw new LlmError('compaction summary cannot contain image output', 'UNSUPPORTED_CONTENT')\n  }\n  return blocks.filter((block): block is Extract<ContentBlock, { type: 'text' }> => block.type === 'text')\n}\n","sourceCodeStart":203,"sourceCodeEnd":225,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/compaction/compaction-basic/src/summarizer.ts#L203-L225","documentation":"Error \"compaction summary cannot contain image output\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/compaction/compaction-basic/src/summarizer.ts:221 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove image output from the compaction summary; summaries must be text only."],"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"}