{"record":{"id":"9ffbe8525c13f19d","repo":"deepseek-ai/deepseek-harness","slug":"workspace-reorder-failed-result-error-code","errorCode":null,"errorMessage":"workspace reorder failed: ${result.error.code}: ${result.error.message}","messagePattern":"workspace reorder failed: (.+?): (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/client/runtime/src/client/workspaces/service.ts","lineNumber":281,"sourceCode":"\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   */\n  async archiveSession(sessionId: SessionId): Promise<void> {\n    const result = await this.manager.archiveSession(sessionId)\n    if (!result.ok) throw new Error(`session archive failed: ${result.error.code}: ${result.error.message}`)\n  }\n\n  /**\n   * Move a session within its Workspace's manual order (DOM-insertBefore-like).\n   * @param workspaceId - owning workspace.\n   * @param sessionId - accounted session to move.\n   * @param beforeSessionId - accounted anchor to insert before; omitted appends.","sourceCodeStart":263,"sourceCodeEnd":299,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/client/runtime/src/client/workspaces/service.ts#L263-L299","documentation":"Error \"workspace reorder failed: ${result.error.code}: ${result.error.message}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/client/runtime/src/client/workspaces/service.ts:281 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the error code and message and correct the workspace reorder 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"}