FileSearchProviderOptions.session is declared as an object, but searches without a cache key got undefined, so providers that key a WeakMap on the session threw. Give those searches their own session and cancel it once the search is done, like clearCache does for cached sessions.