When no embedding provider is available (e.g., OAuth mode without API keys),
memory_search now falls back to FTS-only mode instead of returning disabled: true.
Changes:
- embeddings.ts: return null provider with reason instead of throwing
- manager.ts: handle null provider, use FTS-only search mode
- manager-search.ts: allow searching all models when provider is undefined
- memory-tool.ts: expose search mode in results
The search results now include a 'mode' field indicating 'hybrid' or 'fts-only'.
* Fix a subtle bug: `modelDefault` doesn’t apply when provider === "auto"
1.Fix bugs when provider === "auto" which can lead model end up get ""
2. Fix to only include remote if you actually have any remote fields. (Is this intentional?)
* Refactor memory-search.ts to simplify remote checks
Remove redundant hasRemote variable and simplify includeRemote condition.
* oxfmt-friendly version
oxfmt-friendly version
* fix: local updates for PR #2576
Co-authored-by: papago2355 <papago2355@users.noreply.github.com>
* fix: memory search auto defaults (#2576) (thanks @papago2355)
---------
Co-authored-by: Gustavo Madeira Santana <gumadeiras@gmail.com>
Co-authored-by: papago2355 <papago2355@users.noreply.github.com>