deepseek-ai/deepseek-harness · error · WorkspaceCreateError

workspace create failed

Error message

workspace create failed: ${rpcError.code}: ${rpcError.message}

What it means

Error "workspace create failed: ${rpcError.code}: ${rpcError.message}" thrown in deepseek-ai/deepseek-harness.

Solutions

  1. Read the RPC error code and message and correct the workspace create request.

When it happens

Trigger: Thrown at packages/client/runtime/src/client/workspaces/service.ts:201 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24). Data as JSON: /api/errors/7618a3877c814dba. Report an issue: GitHub.

Appendix: source

Thrown at packages/client/runtime/src/client/workspaces/service.ts:201

    const target = workspaceId ?? currentWorkspaceId ?? workspace.recentWorkspaceId
    if (target === undefined) {
      this.sessions.clear()
      return
    }
    void this.connectWorkspace(target).then(
      (sessionId) => { this.sessions.open(sessionId) },
      (reason: unknown) => { console.warn('new session failed:', reason) },
    )
  }

  /**
   * Register an existing path as a Workspace.
   * @param input - the Host create payload.
   * @returns the created or idempotently resolved Workspace.
   */
  async create(input: { path: string }): Promise<WorkspaceView> {
    const result = await this.manager.create(input)
    if (!result.ok) throw new WorkspaceCreateError(result.error)
    return result.value.workspace
  }

  /**
   * Open the Host's native directory picker (the `native` capability).
   * @returns the selected path, or null when the user cancelled.
   */
  async pickDirectory(): Promise<string | null> {
    const response = await this.api.host.pickDirectory({})
    if (!response.result.ok) {
      throw new Error(`directory picker failed: ${response.result.error.message}`)
    }
    return response.result.value.path
  }

  /**
   * List one directory level through the Host's `browse` capability.
   * @param path - absolute directory to list; absent lists the Host home directory.

View on GitHub (pinned to b150a551b8)