{"record":{"id":"478290ea57d2b311","repo":"deepseek-ai/deepseek-harness","slug":"workspace-delete-failed-result-error-code-r","errorCode":null,"errorMessage":"workspace delete failed: ${result.error.code}: ${result.error.message}","messagePattern":"workspace delete failed: (.+?): (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/client/runtime/src/client/workspaces/service.ts","lineNumber":271,"sourceCode":"   * Rename a Workspace.\n   * @param workspaceId - target workspace.\n   * @param title - new display title (trimmed non-empty by the Host).\n   * @returns the renamed Workspace view.\n   */\n  async rename(workspaceId: WorkspaceId, title: string): Promise<WorkspaceView> {\n    const result = await this.manager.rename(workspaceId, title)\n    if (!result.ok) throw new Error(`workspace rename failed: ${result.error.code}: ${result.error.message}`)\n    return result.value.workspace\n  }\n\n  /**\n   * Delete one Workspace registration. Sessions, session logs, and the\n   * directory remain Host-owned outside this operation.\n   * @param workspaceId - target workspace.\n   */\n  async delete(workspaceId: WorkspaceId): Promise<void> {\n    const result = await this.manager.delete(workspaceId)\n    if (!result.ok) throw new Error(`workspace delete failed: ${result.error.code}: ${result.error.message}`)\n  }\n\n  /**\n   * Move a Workspace within the durable registry display order.\n   * @param workspaceId - Workspace to move.\n   * @param beforeWorkspaceId - Anchor workspace; omitted appends.\n   */\n  async insertBefore(workspaceId: WorkspaceId, beforeWorkspaceId?: WorkspaceId): Promise<void> {\n    const result = await this.manager.insertBefore(workspaceId, beforeWorkspaceId)\n    if (!result.ok) throw new Error(`workspace reorder failed: ${result.error.code}: ${result.error.message}`)\n  }\n\n  /**\n   * Archive a session into the registry-global set. Clearing an archived\n   * current selection is the projection sweep's job (one rule for the local\n   * echo and a remote tab's frame alike).\n   * @param sessionId - session to archive.\n   */","sourceCodeStart":253,"sourceCodeEnd":289,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/client/runtime/src/client/workspaces/service.ts#L253-L289","documentation":"Error \"workspace delete failed: ${result.error.code}: ${result.error.message}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/client/runtime/src/client/workspaces/service.ts:271 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the error code and message and correct the workspace delete 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"}