From 51cedcd99d7ebeb613e5e676953817a45d4ac9e0 Mon Sep 17 00:00:00 2001 From: 0xMink Date: Sun, 8 Feb 2026 09:24:22 -0500 Subject: [PATCH] fix(docs): correct command merge comment to match union behavior The comment claimed "Global state takes precedence over workspace configuration" but the implementation unions both sources via Set with no override logic. Updated to accurately describe the combine and deduplicate behavior. --- src/core/webview/ClineProvider.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts index 5ff0f1c365..6c0c253ed6 100644 --- a/src/core/webview/ClineProvider.ts +++ b/src/core/webview/ClineProvider.ts @@ -1978,8 +1978,7 @@ export class ClineProvider ? workspaceCommands.filter((cmd) => typeof cmd === "string" && cmd.trim().length > 0) : [] - // Combine and deduplicate commands - // Global state takes precedence over workspace configuration + // Combine and deduplicate commands from global state and workspace configuration const mergedCommands = [...new Set([...validGlobalCommands, ...validWorkspaceCommands])] return mergedCommands