From 7d75a0c07eb0fbdfd499c29fd68d7cf6987025ce Mon Sep 17 00:00:00 2001 From: hannesrudolph Date: Mon, 14 Jul 2025 15:57:14 -0600 Subject: [PATCH] fix: trim trailing spaces from command suggestions - Add .trim() when parsing individual tags - Prevents suggestions like 'npm run ' with trailing spaces - Ensures cleaner command patterns in the UI --- src/core/tools/executeCommandTool.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/tools/executeCommandTool.ts b/src/core/tools/executeCommandTool.ts index 0a8157a827..187d68411f 100644 --- a/src/core/tools/executeCommandTool.ts +++ b/src/core/tools/executeCommandTool.ts @@ -84,7 +84,7 @@ export async function executeCommandTool( suggestions = individualSuggestMatches .map((match) => { const content = match.match(/(.*?)<\/suggest>/) - return content ? content[1] : "" + return content ? content[1].trim() : "" }) .filter((suggestion) => suggestion.length > 0) }