{"record":{"id":"1df593391e917baa","repo":"cline/cline","slug":"plugin-setup-context-logger-must-be-an-object","errorCode":null,"errorMessage":"Plugin setup context logger must be an object","messagePattern":"Plugin setup context logger must be an object","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"sdk/packages/core/src/extensions/plugin/plugin-sandbox-bootstrap.ts","lineNumber":320,"sourceCode":"\tif (ctx.user !== undefined && !isObject(ctx.user)) {\n\t\tthrow new Error(\"Plugin setup context user must be an object\");\n\t}\n\tif (ctx.workspaceInfo !== undefined && !isObject(ctx.workspaceInfo)) {\n\t\tthrow new Error(\"Plugin setup context workspaceInfo must be an object\");\n\t}\n\tif (ctx.automation !== undefined && !isObject(ctx.automation)) {\n\t\tthrow new Error(\"Plugin setup context automation must be an object\");\n\t}\n\tif (\n\t\tctx.automation !== undefined &&\n\t\ttypeof ctx.automation.ingestEvent !== \"function\"\n\t) {\n\t\tthrow new Error(\n\t\t\t\"Plugin setup context automation.ingestEvent must be a function\",\n\t\t);\n\t}\n\tif (ctx.logger !== undefined && !isObject(ctx.logger)) {\n\t\tthrow new Error(\"Plugin setup context logger must be an object\");\n\t}\n}\n\n// ---------------------------------------------------------------------------\n// State\n// ---------------------------------------------------------------------------\n\nlet pluginCounter = 0;\nconst pluginState = new Map<string, PluginState>();\nconst contributionCounters = new Map<string, number>();\n\n// ---------------------------------------------------------------------------\n// IPC helpers\n// ---------------------------------------------------------------------------\n\nfunction toErrorPayload(error: unknown): { message: string; stack?: string } {\n\tconst message = error instanceof Error ? error.message : String(error);\n\tconst stack = error instanceof Error ? error.stack : undefined;","sourceCodeStart":302,"sourceCodeEnd":338,"githubUrl":"https://github.com/cline/cline/blob/491b30b806fdb8c93513f821f2b87d63a61542f5/sdk/packages/core/src/extensions/plugin/plugin-sandbox-bootstrap.ts#L302-L338","documentation":"Error \"Plugin setup context logger must be an object\" thrown in cline/cline.","triggerScenarios":"Thrown at sdk/packages/core/src/extensions/plugin/plugin-sandbox-bootstrap.ts:320 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":"491b30b806fdb8c93513f821f2b87d63a61542f5","analyzedAt":"2026-08-25T13:45:22.367Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}