continue
continue copied to clipboard
why '.' in listTool is thought to be the root directory '/'
Before submitting your bug report
- [x] I've tried using the "Ask AI" feature on the Continue docs site to see if the docs have an answer
- [ ] I'm not able to find a related conversation on GitHub discussions that reports the same bug
- [ ] I'm not able to find an open issue that reports the same bug
- [ ] I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- OS: Windows 11
- Continue version: 1.5.26
- IDE version: vs code 1.107.0
- Model: claude code sonnet 4.5
Description
core/tools/implementations/lsTool.ts 8-11 line:
export function resolveLsToolDirPath(dirPath: string | undefined) {
if (!dirPath || dirPath === ".") {
return "/";
}
I think this would be better:
export function resolveLsToolDirPath(dirPath: string | undefined) {
if (!dirPath || dirPath === ".") {
return "current workspace's related path";
}
To reproduce
No response
Log output
Related issues:
- #8877 - ls tool can list os file system root contents when policy is set to "Automatic" and dirPath is '.'
I am seconding this, as it's a security issue and I am also having this exact issue
Fixed by https://github.com/continuedev/continue/pull/9428