{"record":{"id":"6033e846d89e508a","repo":"deepseek-ai/deepseek-harness","slug":"initial-workspace-selection-failed","errorCode":null,"errorMessage":"initial workspace selection failed:","messagePattern":"initial workspace selection failed:","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/client/runtime/src/client/workspaces/service.ts","lineNumber":155,"sourceCode":"      const current = this.sessions.list.getSnapshot().current\n      const target = workspace.recentWorkspaceId\n      if (current !== undefined || target === undefined) {\n        state = 'done'\n        return\n      }\n      state = 'connecting'\n      void this.connectWorkspace(target).then(\n        (sessionId) => {\n          if (disposed) return\n          if (this.sessions.list.getSnapshot().current === undefined) {\n            this.sessions.open(sessionId)\n          }\n          state = 'done'\n        },\n        (reason: unknown) => {\n          if (disposed) return\n          state = 'waiting'\n          console.warn('initial workspace selection failed:', reason)\n        },\n      )\n    }\n    const unsubscribe = this.list.subscribe(reconcile)\n    reconcile()\n    return () => {\n      disposed = true\n      unsubscribe()\n    }\n  }\n\n  /**\n   * The shared New Session action behind the shell entry points (sidebar\n   * button, workspace browser): resolve the target Workspace — explicit wins,\n   * then the current Session's Workspace, then the recent-Workspace\n   * projection — connect its blank session and navigate there; with no\n   * Workspace at all, clear the selection into the New Session view state.\n   * Connect failures are non-fatal (console diagnostics; the current view","sourceCodeStart":137,"sourceCodeEnd":173,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/client/runtime/src/client/workspaces/service.ts#L137-L173","documentation":"Error \"initial workspace selection failed:\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/client/runtime/src/client/workspaces/service.ts:155 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the workspace service backend and storage; retry selecting or creating the initial workspace."],"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"}