Commit ab6ba84
committed
fix: handle "." path in list_directory for both local and GitHub backends
LLMs naturally call list_dir(".") to list root directory. Previously
sanitize_path rejected "." as invalid. Now ".", "./" and "/" are
treated as root (same as empty string) in list_directory.
Agent-Id: agent-01069cef-6b08-41f1-a15d-29feb2ccaea11 parent 3315221 commit ab6ba84
2 files changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
| 222 | + | |
| 223 | + | |
223 | 224 | | |
224 | 225 | | |
225 | 226 | | |
| |||
0 commit comments