openclaw/src/memory
TideFinder 6c451f47f4
Fix a subtle bug: modelDefault doesn’t apply when provider === "auto" (#2576)
* 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>
2026-01-27 00:28:04 -05:00
..
batch-gemini.ts refactor(logging): split config + subsystem imports 2026-01-19 00:15:44 +00:00
batch-openai.ts fix: stabilize ci protocol + openai batch retry 2026-01-18 17:05:27 +00:00
embeddings-gemini.ts refactor: add aws-sdk auth mode and tighten provider auth 2026-01-20 08:28:40 +00:00
embeddings-openai.ts refactor: add aws-sdk auth mode and tighten provider auth 2026-01-20 08:28:40 +00:00
embeddings.test.ts Fix a subtle bug: modelDefault doesn’t apply when provider === "auto" (#2576) 2026-01-27 00:28:04 -05:00
embeddings.ts fix: stabilize tests and logging 2026-01-18 18:43:31 +00:00
headers-fingerprint.ts chore(format): oxfmt memory 2026-01-18 07:30:07 +00:00
hybrid.test.ts chore(gate): fix lint and formatting 2026-01-18 06:01:25 +00:00
hybrid.ts chore(gate): fix lint and formatting 2026-01-18 06:01:25 +00:00
index.test.ts fix: make session memory indexing async 2026-01-21 10:39:00 +00:00
index.ts perf: lazy-load memory manager 2026-01-18 08:05:36 +00:00
internal.test.ts fix: split long memory lines 2026-01-17 21:11:56 +00:00
internal.ts fix: improve memory status and batch fallback 2026-01-19 22:49:06 +00:00
manager-cache-key.ts chore(format): oxfmt memory 2026-01-18 07:30:07 +00:00
manager-search.ts chore(gate): fix lint and formatting 2026-01-18 06:01:25 +00:00
manager.async-search.test.ts test: stabilize cron + async search timings 2026-01-23 06:38:16 +00:00
manager.atomic-reindex.test.ts test: stabilize atomic reindex search mock 2026-01-20 17:50:42 +00:00
manager.batch.test.ts test(memory): speed up batch coverage 2026-01-23 06:22:09 +00:00
manager.embedding-batches.test.ts test(memory): speed up batch coverage 2026-01-23 06:22:09 +00:00
manager.sync-errors-do-not-crash.test.ts fix: stabilize memory sync progress 2026-01-17 23:02:03 +00:00
manager.ts fix: prevent memory CLI hangs 2026-01-22 03:14:59 +00:00
manager.vector-dedupe.test.ts fix: stabilize tests and logging 2026-01-18 18:43:31 +00:00
memory-schema.ts chore(gate): fix lint and formatting 2026-01-18 06:01:25 +00:00
node-llama.ts fix: make node-llama-cpp optional 2026-01-15 18:37:02 +00:00
openai-batch.ts feat(memory): add gemini batches + safe reindex 2026-01-18 16:12:10 +00:00
provider-key.ts feat: add gemini memory embeddings 2026-01-18 09:09:45 +00:00
search-manager.ts perf: lazy-load memory manager 2026-01-18 08:05:36 +00:00
session-files.ts refactor(logging): split config + subsystem imports 2026-01-19 00:15:44 +00:00
sqlite-vec.ts chore(gate): fix lint and formatting 2026-01-18 06:01:25 +00:00
sqlite.ts chore: filter noisy warnings 2026-01-24 10:48:33 +00:00
status-format.ts chore(format): oxfmt memory 2026-01-18 07:30:07 +00:00
sync-memory-files.ts refactor(logging): split config + subsystem imports 2026-01-19 00:15:44 +00:00
sync-session-files.ts refactor(logging): split config + subsystem imports 2026-01-19 00:15:44 +00:00