Repository navigation
Description
Bug type
Regression (worked before, now fails)
Beta release blocker
No
Summary
After upgrading from 2026.5.26 to 2026.6.1, memorySearch provider silently resets to openai default even when not configured, causing Dirty: yes and vector search to pause permanently due to index identity mismatch where expected model is an empty string.
Steps to reproduce
Upgrade from 2026.5.26 to 2026.6.1 via openclaw update
Run openclaw memory status
Observe provider is openai and Dirty: yes
Set provider to google: openclaw config set agents.defaults.memorySearch.provider google
Restart gateway: systemctl --user restart openclaw-gateway
Run openclaw memory status again
Observe Dirty: yes persists with indexIdentity.reason: "index was built for model gemini-embedding-001, expected "
Expected behavior
memorySearch provider should preserve previously configured value across upgrades, or default to auto which correctly selected gemini-embedding-001 in 2026.5.26. Index identity check should not compare against an empty string.
Actual behavior
Provider: openai (requested: openai)
Dirty: yes
indexIdentity:
status: mismatched
reason: "index was built for model gemini-embedding-001, expected "
providerState:
mode: pending
requestedProvider: google
Vector search: paused until memory is rebuilt
expected field is empty string — permanent mismatch regardless of provider setting.
OpenClaw version
2026.6.1 (2e08f0f)
Operating system
Rocky Linux, Node v24.14.1
Install method
npm global (openclaw update)
Model
google/gemini-3-flash-preview (main model), memorySearch previously using auto provider → gemini-embedding-001
Provider / routing chain
Google AI Studio API key → OpenClaw Gateway → memorySearch (previously auto → gemini-embedding-001, now broken)
Additional provider/model setup details
"memorySearch": {
"extraPaths": [
"/path/to/memory/"
],
"enabled": true,
"remote": {
"batch": {
"enabled": false
}
},
"provider": "google"
}
In 2026.5.26, no provider field was set — auto was the default and correctly resolved to gemini-embedding-001.
Logs, screenshots, and evidence
memory status --json key fields:
json"provider": "google",
"requestedProvider": "google",
"dirty": true,
"indexIdentity": {
"status": "mismatched",
"reason": "index was built for model gemini-embedding-001, expected "
},
"providerState": {
"mode": "pending",
"requestedProvider": "google"
},
"fts": {
"enabled": true,
"available": true
},
"vector": {
"enabled": true,
"dims": 3072
}
Impact and severity
Affected: All users who previously used Google/auto as memorySearch provider and upgrade to 2026.6.1
Severity: High — vector search completely unavailable after upgrade, index permanently dirty with no recovery path using google provider
Frequency: Always (100% reproducible after upgrade)
Consequence: Semantic memory recall degraded to FTS-only; vector similarity search unavailable indefinitely
Additional information
Last known good version: 2026.5.26 (provider: auto → correctly selected gemini-embedding-001, Dirty: no).
First known bad version: 2026.5.28 (regression first observed).
Still present in 2026.6.1.
Related issue: #90786 (google provider not recognized by --index/--deep).
Workaround: None available for users without OpenAI API key.Impact and severity
Affected: All users who previously used Google/auto as memorySearch provider and upgrade to 2026.6.1
Severity: High — vector search completely unavailable after upgrade, index permanently dirty with no recovery path using google provider
Frequency: Always (100% reproducible after upgrade)
Consequence: Semantic memory recall degraded to FTS-only; vector similarity search unavailable indefinitely
Additional information
Last known good version: 2026.5.26 (provider: auto → correctly selected gemini-embedding-001, Dirty: no).
First known bad version: 2026.5.28 (regression first observed).
Still present in 2026.6.1.
Related issue: #90786 (google provider not recognized by --index/--deep).
Workaround: None available for users without OpenAI API key.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 5, 2026
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded.
Close as superseded: the intentional legacy auto-to-OpenAI migration is documented, the empty expected-model failure is absent from current main, and the remaining Google provider-ID concern is already tracked by a narrower open issue.
Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.
Root-cause cluster
Relationship:
partial_overlapCanonical: #90786
Summary: The empty-model and legacy-auto portions are resolved or intentional; the remaining Google memory-provider ID behavior overlaps the narrower open report.
Members:
canonical: [Bug]: memory status --index and --deep fail with "Unknown memory embedding provider: google" on 2026.6.1 #90786 - It specifically tracks configured google failing memory embedding-provider initialization, which is the only remaining concrete behavior from this report.Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.
Canonical path: Keep legacy auto migration as documented and consolidate any decision to support google as a memory adapter alias in the canonical report.
So I’m closing this here because the remaining work is already tracked in the canonical issue.
Review details
Best possible solution:
Keep legacy auto migration as documented and consolidate any decision to support google as a memory adapter alias in the canonical report.
Do we have a high-confidence way to reproduce the issue?
No current-main reproduction of the reported empty expected-model path: current identity resolution supplies a configured/default model and the comparator no longer emits an empty expected value.
Is this the best way to solve the issue?
Yes. Closing this broader historical report in favor of the narrower open provider-ID report avoids reviving the deliberately retired auto-selection behavior.
Security review:
Security review: This issue does not propose a patch or report a security-sensitive behavior.
AGENTS.md: found and applied where relevant.
What I checked:
docs/reference/memory-config.md. (docs/reference/memory-config.md:100, 4c52d3fe9df3)src/commands/doctor/shared/legacy-config-migrations.runtime.agents.ts:511, 4c52d3fe9df3)extensions/memory-core/src/memory/manager-sync-base.ts:371, 4c52d3fe9df3)extensions/memory-core/src/memory/manager-reindex-state.ts:166, 85a635368e2f)Likely related people:
extensions/memory-core/src/memory/manager-reindex-state.ts,extensions/memory-core/src/memory/manager-sync-ops.ts)src/commands/doctor/shared/legacy-config-migrations.runtime.agents.ts)Codex review notes: model internal, reasoning high; reviewed against 4c52d3fe9df3.
AndyX-Net commentedon Jun 7, 2026
+1 same issue. Openai provider
Configuration ---
"memorySearch": {
"enabled": true,
"sources": [
"memory"
],
"provider": "openai",
"remote": {
"baseUrl": "https://api.xxxxxxxx/v1",
"apiKey": "xxxxxx"
},
"fallback": "none",
"model": "text-embedding-3-large",
"sync": {
"onSessionStart": true,
"onSearch": true,
"watch": true,
"watchDebounceMs": 5000
},
"cache": {
"enabled": true,
"maxEntries": 20000
},
"chunking": {
"tokens": 512,
"overlap": 100
}
},
Errors ---
{
"results": [],
"disabled": true,
"unavailable": true,
"error": "memory_search timed out after 15s",
"warning": "Memory search is unavailable due to an embedding/provider error.",
"action": "Check embedding provider configuration and retry memory_search.",
"debug": {
"warning": "Memory search is unavailable due to an embedding/provider error.",
"action": "Check embedding provider configuration and retry memory_search.",
"error": "memory_search timed out after 15s"
}
}
TESTed, still not working ---
openclaw gateway stop
rm -rf ~/.openclaw/memory/.sqlite
openclaw memory index --force
openclaw gateway start
AndyX-Net commentedon Jun 7, 2026
MEMORY FIX - #90727
13 remaining items
puspoaditya commentedon Aug 21, 2026
Hi! I'd like to take this one. The regression is in provider config resolution: after 2026.6.1 the
memorySearchprovider falls back toopenaieven when the user configured a different provider — i.e. the stored config is not being honored on load (silently defaulted/overwritten, likely during the 2026.5.26 → 2026.6.1 config migration or the provider-load path).I've worked on LLM provider config/auth resolution before (including OpenAI-compatible providers), so this is in my lane. Plan:
memorySearchprovider is read vs defaulted on load (config load / migration path)Can I take it?
vincentkoc commentedon Aug 24, 2026
Closing as completed.
The permanent dirty-index failure reported here was fixed by #91691 in
85a635368e2f. The repair prevents an empty or whitespace-only provider model from becoming an emptyexpectedModel, usesfts-onlyas the unresolved fallback, and adds focused regression coverage for the empty, whitespace, and non-FTS mismatch cases. The commit is present on currentmainand inv2026.6.9.The legacy
autotoopenaimigration is intentional canonicalization. The separate question of acceptinggoogleversus the canonicalgeminimemory adapter ID remains open in #90786 and its still-open candidate PR #117976; this closure does not resolve or close either thread.Thanks @fenglanhua for the detailed upgrade reproduction and @xydt-tanshanshan for the targeted fix and tests.