Skip to content

memory status always reports "Vector search: paused" with blank expected model (2026.6.1) #90413

Closed

Description

@colinmac-boop

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 status no longer prints Index identity or Vector search: paused lines
  • openclaw memory search "<query>" --agent main returns semantic results
  • memory_search MCP/tool calls succeed (in new sessions; existing session-cached disabled state clears on next session boot)

Happy to send a PR if useful — the change is two small edits in one file.

Activity

  1. clawsweeper commented on Jun 4, 2026

    @clawsweeper
    Contributor

    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.model as 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.model as 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:

    • A repair must preserve real stale-index protections for explicit provider, model, provider-key, source, scope, chunking, vector-dimension, and tokenizer changes.

    Codex review notes: model gpt-5.5, reasoning high; reviewed against 9d7f83b17504.

    Label changes

    Label changes:

    • add P1: The latest release can falsely pause vector search and disable the memory_search tool for a normal default-model setup.
    • add impact:session-state: The bug suppresses semantic memory recall, which affects the agent's memory/context state during sessions.
    • add impact:auth-provider: The root path is provider/model default resolution for the embedding provider identity.
    • add issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.
    • add clawsweeper:source-repro: Current issue advisory state selects this label.
    • add clawsweeper:queueable-fix: Current issue advisory state selects this label.
    • add clawsweeper:fix-shape-clear: Current issue advisory state selects this label.

    Label justifications:

    • P1: The latest release can falsely pause vector search and disable the memory_search tool 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:

    • node scripts/run-vitest.mjs extensions/memory-core/src/memory/index.test.ts
    • node scripts/run-vitest.mjs extensions/memory-core/src/memory/manager-reindex-state.test.ts extensions/memory-core/src/tools.test.ts
    • git diff --check

    What I checked:

    • Repository policy read: Root AGENTS.md and scoped extensions/AGENTS.md were read fully; their memory/runtime review and bundled-plugin boundary guidance apply to this memory-core issue. (AGENTS.md:1, 9d7f83b17504)
    • Configured default-model contract: The memory config reference says memorySearch.model defaults 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)
    • Config resolver can preserve blank model: The current resolver uses nullish coalescing for 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)
    • Plain status does not initialize the provider: runMemoryStatus only probes embeddings under --deep or --index; plain status obtains a status-purpose manager and calls manager.status() without provider initialization. (extensions/memory-core/src/cli.runtime.ts:702, 9d7f83b17504)
    • Blank configured model is used for identity comparison: When the provider has not been initialized, resolveCurrentIndexIdentityState builds the configured provider from this.settings.model directly, so a blank string becomes the expected model. (extensions/memory-core/src/memory/manager-sync-ops.ts:301, 9d7f83b17504)
    • Identity mismatch produces the reported warning: The identity helper compares meta.model to the expected provider model and formats index 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:

    • steipete: Blame on the current status identity code points to 169a415, and prior memory provider/default-model history includes be71918 and 6e9382b by the same author. (role: recent area contributor; confidence: high; commits: 169a4159dee9, be7191879aeb, 6e9382b5c8; files: extensions/memory-core/src/memory/manager-sync-ops.ts, extensions/memory-core/src/memory/manager.ts, src/agents/memory-search.ts)
    • gumadeiras: Co-authored the Gemini embeddings and auto-select provider work that is adjacent to provider default-model resolution. (role: adjacent feature co-author; confidence: medium; commits: be7191879aeb; files: src/agents/memory-search.ts)
    • vincentkoc: Latest release commit and recent memory docs/config history are associated with this area, useful for release-facing verification after a fix. (role: release/docs area contributor; confidence: medium; commits: 2e08f0f4221f, a780151fd1; files: docs/reference/memory-config.md, docs/cli/memory.md)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  2. added
    P1High-priority user-facing bug, regression, or broken workflow.
    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:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.
    clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.
    on Jun 4, 2026
  3. locked as resolved and limited conversation to collaborators on Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.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: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions