mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-15 23:32:40 +00:00
kb_exec silently ignored ls -t. It accepted the flag, dropped it and returned the same undefined database order as a plain ls, so the model believed it had a newest-first list when it did not. With a few thousand files in a knowledge base there was no way to ask what changed recently without reading the whole listing and comparing dates by eye. ls, tree and find now sort their file lines by name by default, so the same knowledge base always lists the same way. -t sorts newest first, -S largest first and -r reverses, combinable like -at or -tr, matching the flags the model already knows from a shell. Directories keep their existing name order and stay grouped first. No query changes: the timestamps and sizes were already loaded for the date and size columns. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| builtin.py | ||
| knowledge_fs.py | ||