{"record":{"id":"7f777b0b90300581","repo":"deepseek-ai/deepseek-harness","slug":"directory-browse-failed-rpcerror-code-rpcer","errorCode":null,"errorMessage":"directory browse failed: ${rpcError.code}: ${rpcError.message}","messagePattern":"directory browse failed: (.+?): (.+?)","errorType":"exception","errorClass":"DirectoryBrowseError","httpStatus":null,"severity":"error","filePath":"packages/client/runtime/src/client/workspaces/service.ts","lineNumber":225,"sourceCode":"   * @returns the selected path, or null when the user cancelled.\n   */\n  async pickDirectory(): Promise<string | null> {\n    const response = await this.api.host.pickDirectory({})\n    if (!response.result.ok) {\n      throw new Error(`directory picker failed: ${response.result.error.message}`)\n    }\n    return response.result.value.path\n  }\n\n  /**\n   * List one directory level through the Host's `browse` capability.\n   * @param path - absolute directory to list; absent lists the Host home directory.\n   * @param signal - aborts the wire request (and the Host's scan) when the caller supersedes it.\n   * @returns the level's listing with breadcrumb ancestry.\n   */\n  async listDirectory(path?: string, signal?: AbortSignal): Promise<DirectoryListing> {\n    const response = await this.api.host.listDirectory(path === undefined ? {} : { path }, signal)\n    if (!response.result.ok) throw new DirectoryBrowseError(response.result.error)\n    return response.result.value\n  }\n\n  /**\n   * Create one child directory through the Host's `browse` capability.\n   * @param path - absolute existing parent directory.\n   * @param name - single non-blank path segment.\n   * @returns the created directory's absolute path.\n   */\n  async createDirectory(path: string, name: string): Promise<string> {\n    const response = await this.api.host.createDirectory({ path, name })\n    if (!response.result.ok) throw new DirectoryBrowseError(response.result.error)\n    return response.result.value.path\n  }\n\n  /**\n   * Open a filesystem path with the Host operating system's default application.\n   * @param path - absolute or host-resolvable path.","sourceCodeStart":207,"sourceCodeEnd":243,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/client/runtime/src/client/workspaces/service.ts#L207-L243","documentation":"Error \"directory browse failed: ${rpcError.code}: ${rpcError.message}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/client/runtime/src/client/workspaces/service.ts:225 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the RPC error code and message and correct the directory browse request."],"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"}