Repository navigation
Description
Summary
openclaw memory status always prints Index identity: index was built for model <X>, expected (with a blank expected) and Vector search: paused until memory is rebuilt, even immediately after a successful openclaw memory index --force. memory_search tool calls return disabled: true, error: "index metadata is missing" as a result.
openclaw memory status --deep reports the system as healthy (Embeddings: ready, Vector store: ready, Semantic vectors: ready) — only the plain status path is broken.
Version: OpenClaw 2026.6.1 (2e08f0f), installed via Homebrew on macOS 15.5 arm64.
Reproduction
Any agent with the default agents.<id>.memorySearch.model (empty string "") and a working embedding provider whose adapter exposes a non-empty defaultModel (e.g. OpenAI text-embedding-3-small) reproduces it.
openclaw memory index --agent main --force # reports success
openclaw memory status # prints "paused" with blank expected
openclaw memory status --deep # reports healthy
openclaw memory search "anything" --agent main # works (returns semantic hits)
Root cause
In MemoryIndexManager.resolveCurrentIndexIdentityState (dist/manager-*.js), configuredProvider.model is assigned directly from this.settings.model:
const configuredProvider = this.settings.provider === "none" ? null : {
id: resolveEmbeddingProviderAdapterId(this.settings.provider, this.cfg) ?? this.settings.provider,
model: this.settings.model
};this.settings.model is the empty string "" by default (not undefined or unset). It only gets resolved against the adapter's defaultModel during provider initialization, which happens on the --deep / --index paths but not on the plain memory status path (providerInitialized: false, this.provider === undefined).
Result: configuredProvider.model = "", identity validation compares meta.model ("text-embedding-3-small") !== "", mismatch declared, message printed with empty "expected".
Empty string survives ?? (nullish-coalescing); only || falls through. The existing code uses neither — direct assignment.
Confirmed with diagnostic logging in a local patched build:
[identity:debug] {"hasOverride":false,"configuredProvider":{"id":"openai","model":""},
"settingsModel":"","settingsProvider":"openai","providerInit":false}
Suggested fix
Resolve the adapter's default model up front in resolveCurrentIndexIdentityState (the helper resolveEmbeddingProviderFallbackModel already exists in the same module and does exactly this):
const configuredProviderModel = this.settings.model && this.settings.model.trim()
? this.settings.model.trim()
: resolveEmbeddingProviderFallbackModel(this.settings.provider, "", this.cfg);
const configuredProvider = this.settings.provider === "none" ? null : {
id: resolveEmbeddingProviderAdapterId(this.settings.provider, this.cfg) ?? this.settings.provider,
model: configuredProviderModel
};A symmetric guard in refreshIndexIdentityDirty for the case where this.providerInitialized is true but this.provider.model is still falsy is also recommended:
const providerModelFallback = this.settings.model;
const provider = this.settings.provider === "none" ? null
: this.providerInitialized
? this.provider ? { id: this.provider.id, model: this.provider.model || providerModelFallback } : null
: void 0;Verification after patching
openclaw memory statusno longer printsIndex identityorVector search: pausedlinesopenclaw memory search "<query>" --agent mainreturns semantic resultsmemory_searchMCP/tool calls succeed (in new sessions; existing session-cacheddisabledstate clears on next session boot)
Happy to send a PR if useful — the change is two small edits in one file.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 4, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 4, 2026, 12:38 PM ET / 16:38 UTC.
Summary
Keep open: current main and latest v2026.6.1 still have the status-only blank-model identity path, so this is a narrow memory-core bug rather than a stale or duplicate cleanup item.
Reproducibility: yes. from source inspection: with
memorySearch.modelas an empty string and existing index metadata built for the provider default, plain status never initializes the provider and compares the metadata against the blank configured model. I did not run a live Homebrew repro because this review was read-only.Next step
This is a narrow, source-backed memory-core bug with clear likely files and regression coverage; no product or config decision is needed first.
Review details
Best possible solution:
Resolve the effective status-time provider model through the same provider-default logic used by initialization, then add a regression test for blank model plus prebuilt default-model metadata while preserving true mismatch warnings.
Do we have a high-confidence way to reproduce the issue?
Yes, from source inspection: with
memorySearch.modelas an empty string and existing index metadata built for the provider default, plain status never initializes the provider and compares the metadata against the blank configured model. I did not run a live Homebrew repro because this review was read-only.Is this the best way to solve the issue?
Yes, the best fix is a narrow identity-resolution change, not a new config option or a provider initialization probe in plain status. Plain status should stay fast while still resolving adapter default model identity consistently.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 9d7f83b17504.
Label changes
Label changes:
P1: The latest release can falsely pause vector search and disable thememory_searchtool for a normal default-model setup.impact:session-state: The bug suppresses semantic memory recall, which affects the agent's memory/context state during sessions.impact:auth-provider: The root path is provider/model default resolution for the embedding provider identity.issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.clawsweeper:source-repro: Current issue advisory state selects this label.clawsweeper:queueable-fix: Current issue advisory state selects this label.clawsweeper:fix-shape-clear: Current issue advisory state selects this label.Label justifications:
P1: The latest release can falsely pause vector search and disable thememory_searchtool for a normal default-model setup.impact:session-state: The bug suppresses semantic memory recall, which affects the agent's memory/context state during sessions.impact:auth-provider: The root path is provider/model default resolution for the embedding provider identity.Evidence reviewed
Acceptance criteria:
What I checked:
AGENTS.md:1, 9d7f83b17504)memorySearch.modeldefaults to the provider default, so an empty configured model should not be treated as a distinct index identity. Public docs:docs/reference/memory-config.md. (docs/reference/memory-config.md:49, 9d7f83b17504)overrides?.model ?? defaults?.model ?? modelDefault ?? "", so an explicit empty string can survive instead of falling through to the adapter default. (src/agents/memory-search.ts:270, 9d7f83b17504)runMemoryStatusonly probes embeddings under--deepor--index; plain status obtains a status-purpose manager and callsmanager.status()without provider initialization. (extensions/memory-core/src/cli.runtime.ts:702, 9d7f83b17504)resolveCurrentIndexIdentityStatebuilds the configured provider fromthis.settings.modeldirectly, so a blank string becomes the expected model. (extensions/memory-core/src/memory/manager-sync-ops.ts:301, 9d7f83b17504)meta.modelto the expected provider model and formatsindex was built for model <meta>, expected <expected>, matching the blank expected-model report when expected is empty. (extensions/memory-core/src/memory/manager-reindex-state.ts:122, 9d7f83b17504)Likely related people:
extensions/memory-core/src/memory/manager-sync-ops.ts,extensions/memory-core/src/memory/manager.ts,src/agents/memory-search.ts)src/agents/memory-search.ts)docs/reference/memory-config.md,docs/cli/memory.md)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.