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) }