{"record":{"id":"2fd7463bb5465193","repo":"deepseek-ai/deepseek-harness","slug":"workspace-name-conflict","errorCode":"workspace-name-conflict","errorMessage":"workspace name '${workspaceName}' is already in use","messagePattern":"workspace name '(.+?)' is already in use","errorType":"exception","errorClass":"WorkspaceNameConflictError","httpStatus":null,"severity":"error","filePath":"packages/host/apiproxy/src/api-proxy.ts","lineNumber":2739,"sourceCode":"            message: `cannot create a workspace at \"${path}\": ${error instanceof Error ? error.message : String(error)}`,\n            details: { path },\n          })\n        }\n      },\n\n      async rename(request) {\n        const { payload } = request\n        const workspace = ctx.workspaceRegistry.get(brandWorkspaceId(payload.workspaceId))\n        if (workspace === undefined) return workspaceNotFound(request, payload.workspaceId)\n        const title = payload.title.trim()\n        // Uniqueness AND the same-title no-op both ride the create chain so\n        // they observe the state left by earlier queued renames — checked\n        // up front, a queued A→A could report success while an earlier A→B\n        // still lands afterwards.\n        const operation = workspaceCreationChain.then(async () => {\n          if (title === workspace.title) return\n          if (ctx.workspaceRegistry.list().some(other => other.id !== workspace.id && other.title === title)) {\n            throw new WorkspaceNameConflictError(title)\n          }\n          await workspace.setTitle(title)\n        })\n        workspaceCreationChain = operation.then(() => undefined, () => undefined)\n        try {\n          await operation\n        } catch (error: unknown) {\n          if (error instanceof WorkspaceNameConflictError) {\n            return err(request, {\n              code: 'workspace-name-conflict',\n              message: error.message,\n              details: { name: error.workspaceName },\n            })\n          }\n          throw error\n        }\n        return ok(request, { workspace: workspaceView(workspace) })\n      },","sourceCodeStart":2721,"sourceCodeEnd":2757,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/host/apiproxy/src/api-proxy.ts#L2721-L2757","documentation":"Error \"workspace name '${workspaceName}' is already in use\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/host/apiproxy/src/api-proxy.ts:2739 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"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"}