Repository navigation
Description
Version: 2026.6.5
Environment: memorySearch provider = openai-compatible (DashScope), model = text-embedding-v4
Bug: Running openclaw memory index --force disables memory_search with "index built with a different provider" error.
Root cause: CLI creates MemoryIndexManager with purpose="cli", no providerResult. computeProviderKey() returns SHA256({provider:"none", model:"fts-only"}). The runtime manager has a full embedding provider with cacheKeyData containing {provider, baseUrl, model, headers} — hashes never match, search gets permanently disabled until meta is manually rewritten.
scopeHash issue: normalizeMemoryMultimodalSettings sets maxFileBytes=10485760 when not configured, not 0 — affects scopeHash computation.
Suggested fix: CLI manager should load the runtime provider config for computing providerKey, or the runtime should auto-fix mismatched meta instead of disabling search.
Reported from user feedback via workspace agent
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 10, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 21, 2026, 12:31 PM ET / 16:31 UTC.
Summary
Keep open. Current main still has the memory index identity gates that can disable runtime memory_search on providerKey, model, or scopeHash drift, and the related open PRs are partial fixes rather than a merged canonical solution.
Reproducibility: no. high-confidence live current-main reproduction was run. Source inspection confirms the active fail-closed identity path, and the issue/comments provide concrete 2026.6.5/2026.6.6 providerKey, provider-model, and scopeHash reproductions.
Root-cause cluster
Relationship:
canonicalCanonical: #91902
Summary: This issue is the canonical providerKey/CLI-runtime identity tracker; sibling issues and PRs cover scopeHash, provider.model, registry lookup, and persistent manager-state slices.
Members:
duplicate: memory_search tool reports 'index provider settings changed' with OAuth-based OpenAI profile #93154 - The OAuth/env providerKey report was closed as a duplicate and explicitly consolidated into this providerKey mismatch issue.partial_overlap: memory_search broken with "index scope changed" after --force rebuild — scopeHash mismatch persists #91592 - The open scopeHash issue covers the scopeHash subclaim and broader index scope changed behavior, but not the whole providerKey/runtime identity report.partial_overlap: Gateway memory_search index stuck dirty: provider.model empty during boot overwrites correct index identity #90042 - The open provider.model issue covers an adjacent source-layer model identity bug that can feed the same memory_search identity failures.partial_overlap: agentmemory__memory_search returns "index metadata is missing" persistently (memory-core manager state cache) #90414 - The persistent missing-metadata issue shares the runtime memory_search fail-closed symptom but focuses on stale manager/cache and reindex lifecycle behavior.partial_overlap: [AI] fix(memory): backfill provider.model with resolved model name in… #91660 - The open PR targets the provider.model backfill slice and may help this cluster, but it is not a full providerKey/scopeHash fix.Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.
Ways to help us reproduce this
Next step
Manual review is needed because the issue already has no-new-fix-pr and product-decision signals, and the remaining boundary spans compatibility-sensitive provider identity, scopeHash, and runtime fail-closed policy.
Review details
Best possible solution:
Keep this issue open as the canonical providerKey/CLI-runtime memory identity tracker until maintainers land a coordinated fix and prove CLI force-reindex plus gateway memory_search agree for non-default providers.
Do we have a high-confidence way to reproduce the issue?
No high-confidence live current-main reproduction was run. Source inspection confirms the active fail-closed identity path, and the issue/comments provide concrete 2026.6.5/2026.6.6 providerKey, provider-model, and scopeHash reproductions.
Is this the best way to solve the issue?
No close-ready solution exists yet. The best fix needs a maintainer-approved memory identity policy that makes CLI reindex, runtime provider resolution, providerKey, and scopeHash agree without destructive or silent metadata invalidation.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning high; reviewed against c2ee9b0be8ae.
Label changes
Label changes:
clawsweeper:fix-shape-clear: Current issue advisory state no longer selects this label.Label justifications:
P1: The issue reports a user-facing memory_search failure that can disable configured semantic memory recall after the documented force-reindex workflow.impact:session-state: The failure leaves durable memory index identity and live runtime memory recall state out of sync.impact:auth-provider: The report centers on embedding provider identity, providerKey hashing, model choice, non-default providers, and auth/profile resolution.Evidence reviewed
What I checked:
AGENTS.md:1, c2ee9b0be8ae)src/agents/memory-search.ts:178, c2ee9b0be8ae)extensions/memory-core/src/memory/embeddings.ts:225, c2ee9b0be8ae)extensions/memory-core/src/memory/manager-reindex-state.ts:180, c2ee9b0be8ae)extensions/memory-core/src/memory/manager-reindex-state.ts:200, c2ee9b0be8ae)extensions/memory-core/src/memory/manager.ts:664, c2ee9b0be8ae)Likely related people:
extensions/memory-core/src/memory/manager.ts,extensions/memory-core/src/memory/manager-reindex-state.ts,extensions/memory-core/src/memory/embeddings.ts)src/agents/memory-search.ts,src/agents/memory-search.test.ts)extensions/memory-core/src/memory/embeddings.ts,packages/memory-host-sdk/src/host/multimodal.ts)packages/memory-host-sdk/src/host/multimodal.ts,src/agents/memory-search.ts)src/agents/memory-search.ts,extensions/memory-core/src/memory/manager.ts,extensions/memory-core/src/memory/manager-reindex-state.ts)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.1818TusculumSt commentedon Jun 15, 2026
Additional reproduction data (June 15)
Confirmed identical behavior on OpenClaw 2026.6.6. Key details not yet captured in the issue:
Affects any non-default provider. Reproduced with both
openai(default) andvoyage(voyage-4). The tool rejects requests with the same"index was built for model X, expected Y"pattern regardless of which provider is configured.Plugin respects config, tool ignores it.
agents.defaults.memorySearch.provider: "voyage"is picked up correctly by the plugin/CLI (openclaw memory status --deepshowsvoyage (requested: voyage)), but thememory_searchtool still checks againstopenai/text-embedding-3-small.Agent auth-state interference. The agent SQLite (
openclaw-agent.sqlite) stores alastGoodauth mapping"openai" → "openai:jonathan.cajigas@gmail.com"(OAuth profile). The tool may be resolving the provider key through this auth store rather than the livememorySearchconfig, contributing to the hash mismatch.scopeHash discrepancy confirmed. The
normalizeMemoryMultimodalSettingsscopeHash issue described in the original report also affects clean builds — usingmaxFileBytes=10485760vs 0 when multimodal is not configured.Workaround for users who need memory_search: None found yet. Impact is limited since mem0 CLI and smart-mem0 skill bypass the tool entirely.
[AI] fix(memory): auto-fix providerKey mismatch from CLI index --force
[AI] fix(memory): narrow providerKey auto-fix to stale FTS-only key only
openclaw-barnacle commentedon Jul 6, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
openclaw-barnacle commentedon Jul 14, 2026
Closing due to inactivity.
If this is still an issue, please retry on the latest OpenClaw release and share updated details.
If you are absolutely sure it still happens on the latest release, open a new issue with fresh steps to reproduce.