mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix: trim trailing spaces from command suggestions
- Add .trim() when parsing individual <suggest> tags - Prevents suggestions like 'npm run ' with trailing spaces - Ensures cleaner command patterns in the UI
This commit is contained in:
parent
81ef373680
commit
7d75a0c07e
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ export async function executeCommandTool(
|
|||
suggestions = individualSuggestMatches
|
||||
.map((match) => {
|
||||
const content = match.match(/<suggest>(.*?)<\/suggest>/)
|
||||
return content ? content[1] : ""
|
||||
return content ? content[1].trim() : ""
|
||||
})
|
||||
.filter((suggestion) => suggestion.length > 0)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue