cline/cline · error · Error
Plugin settings toggle requires a plugin path.
Error message
Plugin settings toggle requires a plugin path.
What it means
Error "Plugin settings toggle requires a plugin path." thrown in cline/cline.
Source
Thrown at sdk/packages/core/src/settings/settings-service.ts:536
if (input.type === "tools") {
if (!input.name?.trim()) {
throw new Error("Tool settings toggle requires a tool name.");
}
if (input.enabled === undefined) {
toggleDisabledTool(input.name);
} else {
setToolDisabledGlobally(input.name, !input.enabled);
}
return {
snapshot: await this.list(input),
changedTypes: ["tools"],
};
}
if (input.type === "plugins") {
const pluginPath = input.path?.trim() || input.id?.trim();
if (!pluginPath) {
throw new Error("Plugin settings toggle requires a plugin path.");
}
if (this.pluginSource) {
const snapshotBeforeMutation = await this.list(input);
let enabled = input.enabled;
if (enabled === undefined) {
const plugin = snapshotBeforeMutation.plugins.find(
(item) => item.path === pluginPath,
);
if (!plugin) {
throw new Error(`Unknown plugin: ${pluginPath}`);
}
enabled = !plugin.enabled;
}
const sourceSnapshot = await this.pluginSource.setEnabled({
path: pluginPath,
enabled,
cwd: input.cwd,
workspaceRoot: input.workspaceRoot,View on GitHub (pinned to 491b30b806)
When it happens
Trigger: Thrown at sdk/packages/core/src/settings/settings-service.ts:536 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/99763c5cdbbed6f3.
Report an issue: GitHub.