{"record":{"id":"082b2ee2d3170ae7","repo":"deepseek-ai/deepseek-harness","slug":"directory-picker-unavailable","errorCode":"directory-picker-unavailable","errorMessage":"host.pickDirectory needs the native capability; the composed picker serves \"${capability.kind}\"","messagePattern":"host\\.pickDirectory needs the native capability; the composed picker serves \"(.+?)\"","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/host/apiproxy/src/api-proxy.ts","lineNumber":2845,"sourceCode":"        return Promise.resolve(ok(request, {\n          version: '0.0.1',\n          // Same source as session.create's fallback: the UI's default project\n          // must match where an unspecified-cwd session actually lands.\n          cwd: defaults.cwd,\n          // Read live for the same reason: this is what the NEXT session will\n          // start from, so a saved default has to be what it reports.\n          provider: selection.provider,\n          model: selection.model,\n          attachedSessions: ctx.agents.list().length,\n          home: homedir(),\n          canOpenPath: canOpenPaths(),\n        }))\n      },\n\n      async pickDirectory(request, signal) {\n        const capability = ctx.directoryPicker.capability()\n        if (capability.kind !== 'native') {\n          return err(request, {\n            code: 'directory-picker-unavailable',\n            message: `host.pickDirectory needs the native capability; the composed picker serves \"${capability.kind}\"`,\n            details: { capability: capability.kind },\n          })\n        }\n        try {\n          const path = await capability.pick(signal)\n          return ok(request, { path })\n        } catch (error: unknown) {\n          if (signal.aborted) {\n            return err(request, {\n              code: 'cancelled',\n              message: 'directory picker was aborted',\n              details: {},\n            })\n          }\n          return err(request, {\n            code: 'internal',","sourceCodeStart":2827,"sourceCodeEnd":2863,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/host/apiproxy/src/api-proxy.ts#L2827-L2863","documentation":"Error \"host.pickDirectory needs the native capability; the composed picker serves \"${capability.kind}\"\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/host/apiproxy/src/api-proxy.ts:2845 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Compose a picker with the native capability for host.pickDirectory; the current picker serves a different kind."],"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"}