{"record":{"id":"b72c284821ba8bd3","repo":"deepseek-ai/deepseek-harness","slug":"directory-unreadable-b72c28","errorCode":"directory-unreadable","errorMessage":"cannot list ${target}: ${message}","messagePattern":"cannot list (.+?): (.+?)","errorType":"error_code","errorClass":"DirectoryPickerError","httpStatus":null,"severity":"error","filePath":"packages/host/apiproxy/src/api-proxy.ts","lineNumber":2889,"sourceCode":"        const capability = ctx.directoryPicker.capability()\n        if (capability.kind !== 'browse') {\n          return err(request, {\n            code: 'directory-picker-unavailable',\n            message: `host.listDirectory needs the browse capability; the composed picker serves \"${capability.kind}\"`,\n            details: { capability: capability.kind },\n          })\n        }\n        try {\n          // The carrier's signal follows the caller: a disconnect or timeout\n          // stops the backend's directory scan instead of outliving it.\n          return ok(request, await capability.list(request.payload.path, signal))\n        } catch (error: unknown) {\n          // An abort is the caller's own timeout/disconnect, not a server\n          // failure — same code pickDirectory and command.execute report.\n          if (signal.aborted) {\n            return err(request, { code: 'cancelled', message: 'directory listing was aborted', details: {} })\n          }\n          return err(request, directoryError(error))\n        }\n      },\n\n      async createDirectory(request) {\n        const capability = ctx.directoryPicker.capability()\n        if (capability.kind !== 'browse') {\n          return err(request, {\n            code: 'directory-picker-unavailable',\n            message: `host.createDirectory needs the browse capability; the composed picker serves \"${capability.kind}\"`,\n            details: { capability: capability.kind },\n          })\n        }\n        try {\n          return ok(request, { path: await capability.createDirectory(request.payload.path, request.payload.name) })\n        } catch (error: unknown) {\n          return err(request, directoryError(error))\n        }\n      },","sourceCodeStart":2871,"sourceCodeEnd":2907,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/host/apiproxy/src/api-proxy.ts#L2871-L2907","documentation":"Error \"cannot list ${target}: ${message}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/host/apiproxy/src/api-proxy.ts:2889 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the target path or its permissions per the embedded message, then list again."],"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"}