Skip to content

[Bug]: memorySearch provider silently resets to "openai" after upgrade to 2026.6.1, causing permanent Dirty index and vector search outage #90787

Closed

Description

@fenglanhua

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.

Activity

  1. clawsweeper commented on Jun 5, 2026

    @clawsweeper
    Contributor

    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_overlap
    Canonical: #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:

    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:

    Likely related people:

    • xydt-tanshanshan: Authored the targeted empty expected-model repair referenced by the issue and present in Memory Core history. (role: historical fix author; confidence: high; commits: 85a635368e2f; files: extensions/memory-core/src/memory/manager-reindex-state.ts, extensions/memory-core/src/memory/manager-sync-ops.ts)
    • Mariano Belinky: Authored the legacy memory auto-provider migration that establishes the current intentional behavior. (role: migration author; confidence: high; commits: a7d2d9c6df00; files: src/commands/doctor/shared/legacy-config-migrations.runtime.agents.ts)

    Codex review notes: model internal, reasoning high; reviewed against 4c52d3fe9df3.

  2. added
    P2Normal backlog priority with limited blast radius.
    impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.
    impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.
    issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.
    clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.
    clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.
    clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.
    clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.
    clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.
    and removed
    clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.
    on Jun 6, 2026
  3. AndyX-Net commented on Jun 7, 2026

    @AndyX-Net

    +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

  4. AndyX-Net commented on Jun 7, 2026

    @AndyX-Net

    MEMORY FIX - #90727

  5. 13 remaining items

  6. added
    issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.
    clawsweeper:not-repro-on-mainClawSweeper found high-confidence evidence that this issue no longer reproduces on main.
    and removed
    clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.
    clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.
    clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.
    clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.
    issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.
    on Aug 15, 2026
  7. puspoaditya commented on Aug 21, 2026

    @puspoaditya

    Hi! I'd like to take this one. The regression is in provider config resolution: after 2026.6.1 the memorySearch provider falls back to openai even 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:

    1. Find where memorySearch provider is read vs defaulted on load (config load / migration path)
    2. Compare the 2026.5.26 → 2026.6.1 config shape change that broke it
    3. Fix so the stored provider is honored (no silent reset)
    4. Regression test: config with a non-openai memorySearch provider survives load

    Can I take it?

  8. self-assigned this
    on Aug 24, 2026
  9. vincentkoc commented on Aug 24, 2026

    @vincentkoc
    Member

    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 empty expectedModel, uses fts-only as the unresolved fallback, and adds focused regression coverage for the empty, whitespace, and non-FTS mismatch cases. The commit is present on current main and in v2026.6.9.

    The legacy auto to openai migration is intentional canonicalization. The separate question of accepting google versus the canonical gemini memory 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Normal backlog priority with limited blast radius.bugSomething isn't workingclawsweeper:not-repro-on-mainClawSweeper found high-confidence evidence that this issue no longer reproduces on main.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.regressionBehavior that previously worked and now fails

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions