Skip to content

[BUG] memory index --force CLI writes incompatible meta providerKey, breaks runtime memory_search #91902

Description

@charles717-art

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

No one assigned

    Labels

    P1High-priority user-facing bug, regression, or broken workflow.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm 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.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.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: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.staleMarked as stale due to inactivity

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions