b10289

ggml-org/llama.cppb10289Aug 5, 2026by github-actions[bot]same day as b10288

What changed since b10288

low risk

Server-side file search is hardened against Windows junctions, unreadable directories, and stale UI cache entries.

New features

  • Directory walks that hit an unreadable subtree now surface a truncated flag instead of silently returning an apparently complete listing.
  • UI picker search cache automatically expires old entries rather than retaining them indefinitely.

Improvements

  • file_glob_search now detects Windows junctions and mount points via the reparse tag, treating them as links so recursive loops terminate.
  • Junk directory name matching on Windows is now case-insensitive, aligning with NTFS semantics.
  • Internal directory listing plumbing was refactored to return a small result struct, cutting list_entries from six parameters to three.
  • Path handling on Windows now converts to UTF-8 correctly for platform-specific cases.

Bug fixes

  • Fixed infinite directory traversal caused by junctions pointing back at an ancestor directory.
  • Fixed silent skipping of directories that failed to open or iterate, which previously produced incomplete search results without warning.
  • Fixed UI picker search cache not evicting stale entries.

Upgrade notes

This is a server-side behavior change only; no configuration or migration is required. Callers consuming file search responses should be prepared to handle the truncated flag, which may now be set in cases that previously returned a clean-looking but incomplete listing. Note that other reparse points (cloud placeholders, dedup stubs) remain walkable by design.

Analyzed Oct 22, 2026

Upgrading?

Release notes summary

This release hardens the server's file search functionality to handle Windows junctions and path normalization correctly. It also fixes UI caching issues and improves error reporting for unreadable directories.

Key Highlights

  • Fixed `file_glob_search` to handle Windows junctions and mount points correctly.
  • Improved directory walk error reporting with a truncated flag.
  • Simplified directory listing plumbing to reduce parameters.
  • UI picker search cache now expires old entries automatically.
  • Fixed platform-specific path handling (UTF-8 conversion on Windows).

Release Notes (excerpt)

<details open> server: harden the file_glob_search directory walk (#26626) * server: don't walk Windows junctions in file_glob_search std::filesystem reports a junction as a plain directory, so the symlink guard misses it and a junction pointing back at an ancestor is walked until the path length gives out read the reparse tag and treat a symlink and a mount point as links, leaving any other reparse point walkable so cloud placeholders and dedup stubs still get searched…

Published by ggml-org on GitHub.

Read the full release notes

Related Repositories