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
feat: improve error message when read_file is used on directory
- Add early directory detection in ReadFileTool before attempting file read
- Provide clear, actionable error message suggesting use of list_files tool
- Add test case for directory reading error scenario
- Fix fsPromises.stat mocking in all test suites to support directory checks
Fixes ROO-319
`File: ${testFilePath}\nError: Access to ${testFilePath} 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.`,
1430
1442
)
1431
1443
})
1444
+
1445
+
it("should provide helpful error when trying to read a directory",async()=>{
1446
+
// Setup - mock fsPromises.stat to indicate the path is a directory
0 commit comments