Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Unreleased

- Fix `directory_tree` returning empty results for paths outside workspace folders.
- Fix anthropic "invalid_request_error" that may happen when doing server web-search + thinking, causing errors in chat.

## 0.101.1
Expand Down
4 changes: 3 additions & 1 deletion src/eca/features/tools/filesystem.clj
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
lines* (atom [(str @path)])
root-filename (path->root-filename db @path)
all-paths (fs/glob @path "**")
allowed-files (set (f.index/filter-allowed all-paths root-filename config))
allowed-files (if root-filename
(set (f.index/filter-allowed all-paths root-filename config))
(set (map fs/canonicalize all-paths)))
walk (fn walk [dir depth]
(let [files (fs/list-dir dir)
names (->> files
Expand Down
Loading