{"record":{"id":"2e9bdf05d599e541","repo":"deepseek-ai/deepseek-harness","slug":"session-archive-failed-result-error-code-re","errorCode":null,"errorMessage":"session archive failed: ${result.error.code}: ${result.error.message}","messagePattern":"session archive failed: (.+?): (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/client/runtime/src/client/workspaces/service.ts","lineNumber":292,"sourceCode":"  /**\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.\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  }","sourceCodeStart":274,"sourceCodeEnd":310,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/client/runtime/src/client/workspaces/service.ts#L274-L310","documentation":"Error \"session archive failed: ${result.error.code}: ${result.error.message}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/client/runtime/src/client/workspaces/service.ts:292 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the error code and message and correct the session archive 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"}