{"record":{"id":"eee6116b11872367","repo":"deepseek-ai/deepseek-harness","slug":"new-session-failed","errorCode":null,"errorMessage":"new session failed:","messagePattern":"new session failed:","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/client/runtime/src/client/workspaces/service.ts","lineNumber":190,"sourceCode":"   * Workspace at all, clear the selection into the New Session view state.\n   * Connect failures are non-fatal (console diagnostics; the current view\n   * stays usable).\n   * @param workspaceId - explicit target Workspace for scoped actions.\n   */\n  startSession(workspaceId?: WorkspaceId): void {\n    const workspace = this.list.getSnapshot()\n    const current = this.sessions.list.getSnapshot().current\n    const currentWorkspaceId = current === undefined\n      ? undefined\n      : workspace.items.find(item => item.sessionIds.includes(current))?.workspaceId\n    const target = workspaceId ?? currentWorkspaceId ?? workspace.recentWorkspaceId\n    if (target === undefined) {\n      this.sessions.clear()\n      return\n    }\n    void this.connectWorkspace(target).then(\n      (sessionId) => { this.sessions.open(sessionId) },\n      (reason: unknown) => { console.warn('new session failed:', reason) },\n    )\n  }\n\n  /**\n   * Register an existing path as a Workspace.\n   * @param input - the Host create payload.\n   * @returns the created or idempotently resolved Workspace.\n   */\n  async create(input: { path: string }): Promise<WorkspaceView> {\n    const result = await this.manager.create(input)\n    if (!result.ok) throw new WorkspaceCreateError(result.error)\n    return result.value.workspace\n  }\n\n  /**\n   * Open the Host's native directory picker (the `native` capability).\n   * @returns the selected path, or null when the user cancelled.\n   */","sourceCodeStart":172,"sourceCodeEnd":208,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/client/runtime/src/client/workspaces/service.ts#L172-L208","documentation":"Error \"new session failed:\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/client/runtime/src/client/workspaces/service.ts:190 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the session service error details; verify storage and configuration, then retry creating the session."],"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"}