{"record":{"id":"99763c5cdbbed6f3","repo":"cline/cline","slug":"plugin-settings-toggle-requires-a-plugin-path","errorCode":null,"errorMessage":"Plugin settings toggle requires a plugin path.","messagePattern":"Plugin settings toggle requires a plugin path\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"sdk/packages/core/src/settings/settings-service.ts","lineNumber":536,"sourceCode":"\t\tif (input.type === \"tools\") {\n\t\t\tif (!input.name?.trim()) {\n\t\t\t\tthrow new Error(\"Tool settings toggle requires a tool name.\");\n\t\t\t}\n\t\t\tif (input.enabled === undefined) {\n\t\t\t\ttoggleDisabledTool(input.name);\n\t\t\t} else {\n\t\t\t\tsetToolDisabledGlobally(input.name, !input.enabled);\n\t\t\t}\n\t\t\treturn {\n\t\t\t\tsnapshot: await this.list(input),\n\t\t\t\tchangedTypes: [\"tools\"],\n\t\t\t};\n\t\t}\n\n\t\tif (input.type === \"plugins\") {\n\t\t\tconst pluginPath = input.path?.trim() || input.id?.trim();\n\t\t\tif (!pluginPath) {\n\t\t\t\tthrow new Error(\"Plugin settings toggle requires a plugin path.\");\n\t\t\t}\n\t\t\tif (this.pluginSource) {\n\t\t\t\tconst snapshotBeforeMutation = await this.list(input);\n\t\t\t\tlet enabled = input.enabled;\n\t\t\t\tif (enabled === undefined) {\n\t\t\t\t\tconst plugin = snapshotBeforeMutation.plugins.find(\n\t\t\t\t\t\t(item) => item.path === pluginPath,\n\t\t\t\t\t);\n\t\t\t\t\tif (!plugin) {\n\t\t\t\t\t\tthrow new Error(`Unknown plugin: ${pluginPath}`);\n\t\t\t\t\t}\n\t\t\t\t\tenabled = !plugin.enabled;\n\t\t\t\t}\n\t\t\t\tconst sourceSnapshot = await this.pluginSource.setEnabled({\n\t\t\t\t\tpath: pluginPath,\n\t\t\t\t\tenabled,\n\t\t\t\t\tcwd: input.cwd,\n\t\t\t\t\tworkspaceRoot: input.workspaceRoot,","sourceCodeStart":518,"sourceCodeEnd":554,"githubUrl":"https://github.com/cline/cline/blob/491b30b806fdb8c93513f821f2b87d63a61542f5/sdk/packages/core/src/settings/settings-service.ts#L518-L554","documentation":"Error \"Plugin settings toggle requires a plugin path.\" thrown in cline/cline.","triggerScenarios":"Thrown at sdk/packages/core/src/settings/settings-service.ts:536 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"}