cline/cline · error · Error
Plugin setup context logger must be an object
Error message
Plugin setup context logger must be an object
What it means
Error "Plugin setup context logger must be an object" thrown in cline/cline.
Source
Thrown at sdk/packages/core/src/extensions/plugin/plugin-sandbox-bootstrap.ts:320
if (ctx.user !== undefined && !isObject(ctx.user)) {
throw new Error("Plugin setup context user must be an object");
}
if (ctx.workspaceInfo !== undefined && !isObject(ctx.workspaceInfo)) {
throw new Error("Plugin setup context workspaceInfo must be an object");
}
if (ctx.automation !== undefined && !isObject(ctx.automation)) {
throw new Error("Plugin setup context automation must be an object");
}
if (
ctx.automation !== undefined &&
typeof ctx.automation.ingestEvent !== "function"
) {
throw new Error(
"Plugin setup context automation.ingestEvent must be a function",
);
}
if (ctx.logger !== undefined && !isObject(ctx.logger)) {
throw new Error("Plugin setup context logger must be an object");
}
}
// ---------------------------------------------------------------------------
// State
// ---------------------------------------------------------------------------
let pluginCounter = 0;
const pluginState = new Map<string, PluginState>();
const contributionCounters = new Map<string, number>();
// ---------------------------------------------------------------------------
// IPC helpers
// ---------------------------------------------------------------------------
function toErrorPayload(error: unknown): { message: string; stack?: string } {
const message = error instanceof Error ? error.message : String(error);
const stack = error instanceof Error ? error.stack : undefined;View on GitHub (pinned to 491b30b806)
When it happens
Trigger: Thrown at sdk/packages/core/src/extensions/plugin/plugin-sandbox-bootstrap.ts:320 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of cline/cline@491b30b806 (2026-08-25).
Data as JSON: /api/errors/1df593391e917baa.
Report an issue: GitHub.