{"record":{"id":"11d80affc4d74047","repo":"deepseek-ai/deepseek-harness","slug":"subprocess-e2b-incomplete-output-transport","errorCode":null,"errorMessage":"subprocess-e2b: incomplete output transport","messagePattern":"subprocess-e2b: incomplete output transport","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/e2b/subprocess-e2b/src/output.ts","lineNumber":60,"sourceCode":"      }\n      decoded.push(bytes)\n    }\n    return Buffer.concat(decoded)\n  }\n\n  /**\n   * Validate clean encoder completion, or discard an interrupted trailing frame after requested termination.\n   * @param requireComplete - Whether natural completion requires the reserved EOF frame.\n   */\n  finish(requireComplete = true): void {\n    if (!requireComplete) {\n      this.pending = ''\n      return\n    }\n    if (this.pending.length > 0) {\n      throw new Error('subprocess-e2b: truncated base64 output transport')\n    }\n    if (!this.complete) throw new Error('subprocess-e2b: incomplete output transport')\n  }\n}\n\n/** Offset reader used for one collect-mode E2B stream. */\nexport class E2BOutputReader implements SubprocessOutputReader {\n  private chunks: Buffer[] = []\n  private retainedBytes = 0\n  private totalBytes = 0\n  private spillValid = true\n\n  /**\n   * Create a bounded reader over one remote spill path.\n   * @param maxBytes - In-memory tail cap.\n   * @param maxSpillBytes - Maximum complete remote file size the caller accepts.\n   * @param spillPath - Remote full-output path.\n   */\n  constructor(\n    private readonly maxBytes: number,","sourceCodeStart":42,"sourceCodeEnd":78,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/e2b/subprocess-e2b/src/output.ts#L42-L78","documentation":"Error \"subprocess-e2b: incomplete output transport\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/e2b/subprocess-e2b/src/output.ts:60 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"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"}