{"record":{"id":"788d3a63dda7796e","repo":"deepseek-ai/deepseek-harness","slug":"fs-aborted","errorCode":"FS_ABORTED","errorMessage":"${operation} aborted","messagePattern":"(.+?) aborted","errorType":"error_code","errorClass":"FsError","httpStatus":null,"severity":"error","filePath":"packages/e2b/fs-e2b/src/index.ts","lineNumber":35,"sourceCode":"  FsTarget,\n  FsWriteIntent,\n  FsWriteOutcome,\n} from '@deepseek-ai/dsh-fs'\nimport {\n  CommandExitError,\n  e2bControlEnvs,\n  FileNotFoundError,\n  FileType,\n  quoteE2BShellArg,\n} from '@deepseek-ai/dsh-e2b'\nimport type { EntryInfo, Sandbox } from '@deepseek-ai/dsh-e2b'\n\nconst VERSION_METADATA_KEY = 'dsh-version'\nconst BINARY_SAMPLE_BYTES = 8192\nconst BASE64 = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/\n\nfunction assertNotAborted(signal: AbortSignal | undefined, operation: string): void {\n  if (signal?.aborted === true) throw new FsError(`${operation} aborted`, 'FS_ABORTED')\n}\n\nfunction normalizeLineEndings(value: string): string {\n  return value.replaceAll('\\r\\n', '\\n')\n}\n\nfunction detectsCrlf(value: string): boolean {\n  const sample = value.slice(0, 4096)\n  const crlf = sample.split('\\r\\n').length - 1\n  const lf = sample.split('\\n').length - 1 - crlf\n  return crlf > lf\n}\n\nfunction restoreLineEndings(value: string, crlf: boolean): string {\n  return crlf ? normalizeLineEndings(value).replaceAll('\\n', '\\r\\n') : value\n}\n\nfunction decodeText(bytes: Uint8Array, displayPath: string, binarySampleBytes: number): string {","sourceCodeStart":17,"sourceCodeEnd":53,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/e2b/fs-e2b/src/index.ts#L17-L53","documentation":"Error \"${operation} aborted\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/e2b/fs-e2b/src/index.ts:35 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"}