>>109584828
>>109584829
>>109585061
I'm using open-webui and it's open-terminal, all the tools are in main.py so I added this exclusion list;
if os.path.isfile(target):
_search_file(target)
else:
_EXCLUDED = {"node_modules", ".git", "build", "dist", "wwwroot", ".angular", ".cache", ".local", ".dotnet", ".nuget", "obj"}
for dirpath, dirnames, filenames in os.walk(target):
# prune node_modules
dirnames[:] = [
d for d in dirnames
if d not in _EXCLUDED and fs.is_path_allowed(os.path.join(dirpath, d))
]
if truncated:
It mostly works, but sometimes qwen just chooses to use run_command and call grep directly. Funnily enough when it chose to do that as I was testing for a string that was in a file in the node_modules folder is thought
>The system prompt says to always exclude node_modules from grep_search... but the user is explicitly saying all files under /UI. Hmm.
little retard