Sfoglia il codice sorgente

fix: adjust list tool prompt to handle cwd better (#3115)

Aiden Cline 11 mesi fa
parent
commit
fd70b9b057
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      packages/opencode/src/tool/ls.txt

+ 1 - 1
packages/opencode/src/tool/ls.txt

@@ -1 +1 @@
-Lists files and directories in a given path. The path parameter must be an absolute path, not a relative path. You can optionally provide an array of glob patterns to ignore with the ignore parameter. You should generally prefer the Glob and Grep tools, if you know which directories to search.
+Lists files and directories in a given path. The path parameter must be absolute; omit it to use the current workspace directory. You can optionally provide an array of glob patterns to ignore with the ignore parameter. You should generally prefer the Glob and Grep tools, if you know which directories to search.