{"record":{"id":"2907ada972d97df7","repo":"deepseek-ai/deepseek-harness","slug":"subprocess-e2b-failed-to-remove-private-command-s","errorCode":null,"errorMessage":"subprocess-e2b: failed to remove private command state","messagePattern":"subprocess-e2b: failed to remove private command state","errorType":"exception","errorClass":"AggregateError","httpStatus":null,"severity":"error","filePath":"packages/e2b/subprocess-e2b/src/process.ts","lineNumber":695,"sourceCode":"        }))\n      }\n    }\n    collect(this.spec.stdio.stdout, this.stdoutReader, this.paths.stdout)\n    collect(this.spec.stdio.stderr, this.stderrReader, this.paths.stderr)\n    await Promise.all(removals)\n  }\n\n  private async removeFailedState(sandbox: Sandbox): Promise<void> {\n    const failures: Error[] = []\n    for (const path of [this.paths.environment, this.stateDir]) {\n      try {\n        await sandbox.files.remove(path)\n      } catch (error: unknown) {\n        if (!(error instanceof FileNotFoundError)) failures.push(asError(error))\n      }\n    }\n    if (failures.length > 0) {\n      throw new AggregateError(failures, 'subprocess-e2b: failed to remove private command state')\n    }\n  }\n}\n","sourceCodeStart":677,"sourceCodeEnd":699,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/e2b/subprocess-e2b/src/process.ts#L677-L699","documentation":"Error \"subprocess-e2b: failed to remove private command state\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/e2b/subprocess-e2b/src/process.ts:695 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"}