You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: show actual parsing errors instead of "user denied" message
- Add try-catch in askApproval to properly handle parsing errors
- Add new parsingError response type for clearer error messages
- Fixes#6028 where complex command syntax showed misleading error
Copy file name to clipboardExpand all lines: src/core/prompts/responses.ts
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,9 @@ export const formatResponse = {
15
15
16
16
toolError: (error?: string)=>`The tool execution failed with the following error:\n<error>\n${error}\n</error>`,
17
17
18
+
parsingError: (error?: string)=>
19
+
`Failed to parse command or request:\n<error>\n${error}\n</error>\n\nThis error occurred before the approval dialog could be shown. Please check the command syntax and try again.`,
20
+
18
21
rooIgnoreError: (path: string)=>
19
22
`Access to ${path} is blocked by the .rooignore file settings. You must try to continue in the task without using this file, or ask the user to update the .rooignore file.`,
0 commit comments