]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ui: degrade the working directory picker when file search is off (#26811)
authorPascal <redacted>
Sun, 9 Aug 2026 19:20:23 +0000 (21:20 +0200)
committerGitHub <redacted>
Sun, 9 Aug 2026 19:20:23 +0000 (21:20 +0200)
commit74ce15741b420b8d6f12e720398458b576c51c2c
tree3d85e374290bf7af3e0662bca8513859b6a6c7c0
parent936918514ce522b553c0fd80b169a6440e6096c6
ui: degrade the working directory picker when file search is off (#26811)

The picker mounts whenever a cwd-aware builtin tool is enabled, so
it can open while file_glob_search is not served or was disabled by
the user. Every typed query then fired a search that could only
fail with a raw error.

Gate the debounced search on the tool state, the same way the
mention picker does, and show a message in place of the results
list that explains why search is unavailable. Manual entry with
Enter still commits a directory. The Browse button and the search
scope footer are hidden as well: Browse resolves the picked folder
name through file_glob_search, and the client-side toggle would not
stop that call.
tools/ui/src/lib/components/app/chat/ChatForm/ChatFormWorkingDirectory.svelte