Commit 1bca387
committed
fix(memory-core): resolve adapter default model for index identity state
When agents.<id>.memorySearch.model is left at the default empty string
and the embedding adapter exposes a defaultModel (e.g. OpenAI
text-embedding-3-small), `openclaw memory status` reported a mismatch
against a blank expected model and paused vector search, even though
`--deep` status and `memory index --force` succeeded.
resolveCurrentIndexIdentityState built configuredProvider directly from
this.settings.model, so the empty default survived as the expected
model. The provider path that actually creates embeddings resolves the
adapter's defaultModel, but the cheap status-only path never
initialised the provider and never reached that branch.
Resolve the adapter defaultModel up front via the existing
resolveEmbeddingProviderFallbackModel helper (same module) so the
status path computes the same expected model as the index/deep paths.
Apply a symmetric fallback in refreshIndexIdentityDirty for the case
where the provider is initialised but its model is still falsy.
Closes #904131 parent 60cb5d6 commit 1bca387
2 files changed
Lines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
298 | 299 | | |
299 | 300 | | |
300 | 301 | | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
301 | 310 | | |
302 | 311 | | |
303 | 312 | | |
304 | 313 | | |
305 | 314 | | |
306 | 315 | | |
307 | 316 | | |
308 | | - | |
| 317 | + | |
309 | 318 | | |
310 | 319 | | |
311 | 320 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
427 | 428 | | |
428 | 429 | | |
429 | 430 | | |
430 | | - | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
431 | 441 | | |
432 | 442 | | |
433 | 443 | | |
| |||
0 commit comments