{"record":{"id":"0ac13a0dc474119d","repo":"deepseek-ai/deepseek-harness","slug":"agent-preset-conflict","errorCode":"agent-preset-conflict","errorMessage":"error.message","messagePattern":"error\\.message","errorType":"error_code","errorClass":"AgentPresetConflict","httpStatus":null,"severity":"error","filePath":"packages/host/apiproxy/src/api-proxy.ts","lineNumber":2098,"sourceCode":"        const sessionId = request.payload.sessionId ?? `session-${randomUUID()}` as SessionId\n        let workspace: Workspace | undefined\n        if (request.payload.workspaceId !== undefined) {\n          workspace = ctx.workspaceRegistry.get(brandWorkspaceId(request.payload.workspaceId))\n          if (workspace === undefined) {\n            return err(request, {\n              code: 'workspace-not-found',\n              message: `workspace \"${request.payload.workspaceId}\" not found`,\n              details: { workspaceId: request.payload.workspaceId },\n            })\n          }\n        }\n        const cwd = workspace?.path ?? request.payload.cwd ?? defaults.cwd\n        const requestedPreset = request.payload.agentPreset\n        try {\n          await ensureSession(sessionId, cwd, request.payload.sessionId !== undefined, requestedPreset)\n        } catch (error: unknown) {\n          if (error instanceof AgentPresetConflict) {\n            return err(request, {\n              code: 'agent-preset-conflict',\n              message: error.message,\n              details: {\n                sessionId: error.sessionId,\n                requestedPreset: error.requestedPreset,\n                ...error.existingPreset === undefined ? {} : { existingPreset: error.existingPreset },\n              },\n            })\n          }\n          const refused = presetFailure(request, error)\n          if (refused !== undefined) return refused\n          if (error instanceof SessionCwdConflict) {\n            return err(request, {\n              code: 'session-conflict',\n              message: error.message,\n              details: {\n                sessionId: error.sessionId,\n                requestedCwd: error.requestedCwd,","sourceCodeStart":2080,"sourceCodeEnd":2116,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/host/apiproxy/src/api-proxy.ts#L2080-L2116","documentation":"Error \"error.message\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/host/apiproxy/src/api-proxy.ts:2098 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the forwarded error message in the response or logs and fix the underlying failure it names."],"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"}