{"record":{"id":"8e83be513206999a","repo":"deepseek-ai/deepseek-harness","slug":"workspace-move-failed-result-error-code-res","errorCode":null,"errorMessage":"workspace move failed: ${result.error.code}: ${result.error.message}","messagePattern":"workspace move failed: (.+?): (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/client/runtime/src/client/workspaces/service.ts","lineNumber":308,"sourceCode":"  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.\n   * @returns the updated Workspace view.\n   */\n  async insertSessionBefore(\n    workspaceId: WorkspaceId,\n    sessionId: SessionId,\n    beforeSessionId?: SessionId,\n  ): Promise<WorkspaceView> {\n    const result = await this.manager.insertSessionBefore(workspaceId, sessionId, beforeSessionId)\n    if (!result.ok) throw new Error(`workspace move failed: ${result.error.code}: ${result.error.message}`)\n    return result.value.workspace\n  }\n\n  /**\n   * Refresh the workspace baseline, reusing an in-flight pull.\n   * @returns completion of the current or newly started workspace baseline pull.\n   */\n  refresh(): Promise<void> {\n    return this.manager.refresh()\n  }\n\n  /**\n   * Route a Host stream envelope into the Workspace object layer.\n   * @param envelope - validated Host stream envelope.\n   */\n  handleHostEnvelope(envelope: Parameters<WorkspaceManager['handleHostEnvelope']>[0]): void {\n    this.manager.handleHostEnvelope(envelope)\n  }","sourceCodeStart":290,"sourceCodeEnd":326,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/client/runtime/src/client/workspaces/service.ts#L290-L326","documentation":"Error \"workspace move failed: ${result.error.code}: ${result.error.message}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/client/runtime/src/client/workspaces/service.ts:308 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the error code and message and correct the workspace move 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"}