{"record":{"id":"7618a3877c814dba","repo":"deepseek-ai/deepseek-harness","slug":"workspace-create-failed-rpcerror-code-rpcer","errorCode":null,"errorMessage":"workspace create failed: ${rpcError.code}: ${rpcError.message}","messagePattern":"workspace create failed: (.+?): (.+?)","errorType":"exception","errorClass":"WorkspaceCreateError","httpStatus":null,"severity":"error","filePath":"packages/client/runtime/src/client/workspaces/service.ts","lineNumber":201,"sourceCode":"    const target = workspaceId ?? currentWorkspaceId ?? workspace.recentWorkspaceId\n    if (target === undefined) {\n      this.sessions.clear()\n      return\n    }\n    void this.connectWorkspace(target).then(\n      (sessionId) => { this.sessions.open(sessionId) },\n      (reason: unknown) => { console.warn('new session failed:', reason) },\n    )\n  }\n\n  /**\n   * Register an existing path as a Workspace.\n   * @param input - the Host create payload.\n   * @returns the created or idempotently resolved Workspace.\n   */\n  async create(input: { path: string }): Promise<WorkspaceView> {\n    const result = await this.manager.create(input)\n    if (!result.ok) throw new WorkspaceCreateError(result.error)\n    return result.value.workspace\n  }\n\n  /**\n   * Open the Host's native directory picker (the `native` capability).\n   * @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.","sourceCodeStart":183,"sourceCodeEnd":219,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/client/runtime/src/client/workspaces/service.ts#L183-L219","documentation":"Error \"workspace create failed: ${rpcError.code}: ${rpcError.message}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/client/runtime/src/client/workspaces/service.ts:201 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the RPC error code and message and correct the workspace create 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"}