Skip to content

[Bug]: After updating to OpenClaw 2026.6.1, legacy state migration warnings keep appearing even after running openclaw doctor --fix. #90213

Closed

Description

@rogerallen1

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

After updating to OpenClaw 2026.6.1, legacy state migration warnings keep appearing even after running openclaw doctor --fix.

Left plugin install index in place because shared SQLite state has conflicting plugin install metadata for: brave, lobster

The warning still appears even after running openclaw doctor --fix

Steps to reproduce

openclaw upgrade

Expected behavior

Warnings to not be there

Actual behavior

I get post upgrade warning

OpenClaw version

2026.6.1

Operating system

Ubuntu

Install method

No response

Model

qwen 3.6

Provider / routing chain

lmstudio

Additional provider/model setup details

local

Logs, screenshots, and evidence

admin@PiClaw:~ $ openclaw plugins inspect brave --runtime --json
08:01:32 [state-migrations] Legacy state migration warnings:
- Left plugin install index in place because shared SQLite state has conflicting plugin install metadata for: brave, lobster
{
  "workspaceDir": "/home/admin/.openclaw/workspace-sql",
  "plugin": {
    "id": "brave",
    "name": "Brave Plugin",
    "description": "Bundled Brave plugin",
    "version": "2026.6.1",
    "packageName": "@openclaw/brave-plugin",
    "format": "openclaw",
    "source": "/home/admin/.openclaw/npm/projects/openclaw-brave-plugin-11fe9e3aa3/node_modules/@openclaw/brave-plugin/dist/index.js",
    "rootDir": "/home/admin/.openclaw/npm/projects/openclaw-brave-plugin-11fe9e3aa3/node_modules/@openclaw/brave-plugin",
    "origin": "global",
    "trustedOfficialInstall": true,
    "enabled": true,
    "compat": [],
    "explicitlyEnabled": true,
    "activated": true,
    "activationSource": "explicit",
    "activationReason": "enabled in config",
    "syntheticAuthRefs": [],
    "status": "loaded",
    "toolNames": [],
    "hookNames": [],
    "channelIds": [],
    "cliBackendIds": [],
    "providerIds": [],
    "embeddingProviderIds": [],
    "speechProviderIds": [],
    "realtimeTranscriptionProviderIds": [],
    "realtimeVoiceProviderIds": [],
    "mediaUnderstandingProviderIds": [],
    "transcriptSourceProviderIds": [],
    "imageGenerationProviderIds": [],
    "videoGenerationProviderIds": [],
    "musicGenerationProviderIds": [],
    "webFetchProviderIds": [],
    "webSearchProviderIds": [
      "brave"
    ],
    "migrationProviderIds": [],
    "contextEngineIds": [],
    "memoryEmbeddingProviderIds": [],
    "agentHarnessIds": [],
    "cliCommands": [],
    "services": [],
    "gatewayDiscoveryServiceIds": [],
    "commands": [],
    "httpRoutes": 0,
    "hookCount": 0,
    "configSchema": true,
    "configUiHints": {
      "webSearch.apiKey": {
        "label": "Brave Search API Key",
        "help": "Brave Search API key (fallback: BRAVE_API_KEY env var).",
        "sensitive": true,
        "placeholder": "BSA..."
      },
      "webSearch.mode": {
        "label": "Brave Search Mode",
        "help": "Brave Search mode: web or llm-context."
      },
      "webSearch.baseUrl": {
        "label": "Brave Search Base URL",
        "help": "Optional Brave-compatible API base URL for trusted proxies. Defaults to https://api.search.brave.com."
      }
    },
    "configJsonSchema": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "webSearch": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "apiKey": {
              "type": [
                "string",
                "object"
              ]
            },
            "mode": {
              "type": "string",
              "enum": [
                "web",
                "llm-context"
              ]
            },
            "baseUrl": {
              "type": [
                "string",
                "object"
              ]
            }
          }
        }
      }
    },
    "contracts": {
      "webSearchProviders": [
        "brave"
      ]
    },
    "imported": true,
    "dependencyStatus": {
      "hasDependencies": false,
      "installed": true,
      "requiredInstalled": true,
      "optionalInstalled": true,
      "missing": [],
      "missingOptional": [],
      "dependencies": [],
      "optionalDependencies": []
    }
  },
  "shape": "plain-capability",
  "capabilityMode": "plain",
  "capabilityCount": 1,
  "capabilities": [
    {
      "kind": "web-search",
      "ids": [
        "brave"
      ]
    }
  ],
  "typedHooks": [],
  "customHooks": [],
  "tools": [],
  "commands": [],
  "cliCommands": [],
  "services": [],
  "gatewayDiscoveryServices": [],
  "gatewayMethods": [],
  "mcpServers": [],
  "lspServers": [],
  "httpRouteCount": 0,
  "bundleCapabilities": [],
  "diagnostics": [],
  "policy": {
    "allowedModels": [],
    "hasAllowedModelsConfig": false
  },
  "usesLegacyBeforeAgentStart": false,
  "compatibility": [],
  "install": {
    "source": "npm",
    "spec": "@openclaw/brave-plugin",
    "installPath": "/home/admin/.openclaw/npm/projects/openclaw-brave-plugin-11fe9e3aa3/node_modules/@openclaw/brave-plugin",
    "version": "2026.6.1",
    "resolvedName": "@openclaw/brave-plugin",
    "resolvedVersion": "2026.6.1",
    "resolvedSpec": "@openclaw/brave-plugin@2026.6.1",
    "integrity": "sha512-QrmjJ4ZjujrCjQKfG/7pAI/Dwedg6KwhkgaWNSqxbgX89nczjvfuZM8ljiieQDuuuesYxMbaKph5n4aWHLzJsg==",
    "shasum": "8024f1b9e40553323b22d5a25f6ac23dc5dea654",
    "resolvedAt": "2026-06-04T06:54:55.137Z",
    "installedAt": "2026-06-04T06:54:57.514Z"
  }
}

admin@PiClaw:~ $ openclaw plugins inspect brave --runtime --json
08:02:44 [state-migrations] Legacy state migration warnings:
- Left plugin install index in place because shared SQLite state has conflicting plugin install metadata for: brave, lobster
{
  "workspaceDir": "/home/admin/.openclaw/workspace-sql",
  "plugin": {
    "id": "brave",
    "name": "Brave Plugin",
    "description": "Bundled Brave plugin",
    "version": "2026.6.1",
    "packageName": "@openclaw/brave-plugin",
    "format": "openclaw",
    "source": "/home/admin/.openclaw/npm/projects/openclaw-brave-plugin-11fe9e3aa3/node_modules/@openclaw/brave-plugin/dist/index.js",
    "rootDir": "/home/admin/.openclaw/npm/projects/openclaw-brave-plugin-11fe9e3aa3/node_modules/@openclaw/brave-plugin",
    "origin": "global",
    "trustedOfficialInstall": true,
    "enabled": true,
    "compat": [],
    "explicitlyEnabled": true,
    "activated": true,
    "activationSource": "explicit",
    "activationReason": "enabled in config",
    "syntheticAuthRefs": [],
    "status": "loaded",
    "toolNames": [],
    "hookNames": [],
    "channelIds": [],
    "cliBackendIds": [],
    "providerIds": [],
    "embeddingProviderIds": [],
    "speechProviderIds": [],
    "realtimeTranscriptionProviderIds": [],
    "realtimeVoiceProviderIds": [],
    "mediaUnderstandingProviderIds": [],
    "transcriptSourceProviderIds": [],
    "imageGenerationProviderIds": [],
    "videoGenerationProviderIds": [],
    "musicGenerationProviderIds": [],
    "webFetchProviderIds": [],
    "webSearchProviderIds": [
      "brave"
    ],
    "migrationProviderIds": [],
    "contextEngineIds": [],
    "memoryEmbeddingProviderIds": [],
    "agentHarnessIds": [],
    "cliCommands": [],
    "services": [],
    "gatewayDiscoveryServiceIds": [],
    "commands": [],
    "httpRoutes": 0,
    "hookCount": 0,
    "configSchema": true,
    "configUiHints": {
      "webSearch.apiKey": {
        "label": "Brave Search API Key",
        "help": "Brave Search API key (fallback: BRAVE_API_KEY env var).",
        "sensitive": true,
        "placeholder": "BSA..."
      },
      "webSearch.mode": {
        "label": "Brave Search Mode",
        "help": "Brave Search mode: web or llm-context."
      },
      "webSearch.baseUrl": {
        "label": "Brave Search Base URL",
        "help": "Optional Brave-compatible API base URL for trusted proxies. Defaults to https://api.search.brave.com."
      }
    },
    "configJsonSchema": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "webSearch": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "apiKey": {
              "type": [
                "string",
                "object"
              ]
            },
            "mode": {
              "type": "string",
              "enum": [
                "web",
                "llm-context"
              ]
            },
            "baseUrl": {
              "type": [
                "string",
                "object"
              ]
            }
          }
        }
      }
    },
    "contracts": {
      "webSearchProviders": [
        "brave"
      ]
    },
    "imported": true,
    "dependencyStatus": {
      "hasDependencies": false,
      "installed": true,
      "requiredInstalled": true,
      "optionalInstalled": true,
      "missing": [],
      "missingOptional": [],
      "dependencies": [],
      "optionalDependencies": []
    }
  },
  "shape": "plain-capability",
  "capabilityMode": "plain",
  "capabilityCount": 1,
  "capabilities": [
    {
      "kind": "web-search",
      "ids": [
        "brave"
      ]
    }
  ],
  "typedHooks": [],
  "customHooks": [],
  "tools": [],
  "commands": [],
  "cliCommands": [],
  "services": [],
  "gatewayDiscoveryServices": [],
  "gatewayMethods": [],
  "mcpServers": [],
  "lspServers": [],
  "httpRouteCount": 0,
  "bundleCapabilities": [],
  "diagnostics": [],
  "policy": {
    "allowedModels": [],
    "hasAllowedModelsConfig": false
  },
  "usesLegacyBeforeAgentStart": false,
  "compatibility": [],
  "install": {
    "source": "npm",
    "spec": "@openclaw/brave-plugin",
    "installPath": "/home/admin/.openclaw/npm/projects/openclaw-brave-plugin-11fe9e3aa3/node_modules/@openclaw/brave-plugin",
    "version": "2026.6.1",
    "resolvedName": "@openclaw/brave-plugin",
    "resolvedVersion": "2026.6.1",
    "resolvedSpec": "@openclaw/brave-plugin@2026.6.1",
    "integrity": "sha512-QrmjJ4ZjujrCjQKfG/7pAI/Dwedg6KwhkgaWNSqxbgX89nczjvfuZM8ljiieQDuuuesYxMbaKph5n4aWHLzJsg==",
    "shasum": "8024f1b9e40553323b22d5a25f6ac23dc5dea654",
    "resolvedAt": "2026-06-04T06:54:55.137Z",
    "installedAt": "2026-06-04T06:54:57.514Z"
  }
}

Impact and severity

It's just a warning

Additional information

◇ Doctor warnings ──────────────────────────────────────────────────────╮
│ │
│ - Left plugin install index in place because shared SQLite state has │
│ conflicting plugin install metadata for: brave, lobster │
│ │
├────────────────────────────────────────────────────────────────────────╯
07:59:34 [state-migrations] Legacy state migration warnings:

  • Left plugin install index in place because shared SQLite state has conflicting plugin install metadata for: brave, lobster

Activity

  1. rogerallen1 commented on Jun 4, 2026

    @rogerallen1
    Author

    The affected plugins are brave and lobster. It looks like the legacy plugin install index and the shared SQLite plugin metadata disagree, and the migrator leaves the legacy index in place instead of archiving it. I’m not sure whether this is safe to ignore, whether the old ~/.openclaw/plugins/installs.json should be moved aside, or whether doctor should provide clearer repair guidance.

  2. 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 21, 2026, 7:37 AM ET / 11:37 UTC.

    Summary
    Keep open: current main and v2026.6.9 still leave several legacy-state sources in place after SQLite rows already exist, so the broad post-doctor repeated-warning problem is only partially addressed by the merged plugin install-index work.

    Reproducibility: yes. Source inspection shows current main still has warning-preserving paths for unresolved plugin install-index conflicts, plugin-state sidecar row conflicts, and Memory Core sources when SQLite rows already exist; I did not run a packaged upgrade because this review is read-only.

    Root-cause cluster
    Relationship: canonical
    Canonical: #90213
    Summary: This issue remains the broad tracker for repeated legacy-state warnings after doctor; merged and open related items cover narrower plugin install-index slices, while the MS Teams conversation-store report is adjacent and higher impact.

    Members:

    Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

    Next step
    Manual review is needed because the remaining fix is a compatibility-sensitive persisted-state retirement policy, and the open PR only owns one plugin install-index subset.

    Review details

    Best possible solution:

    Define and test a maintainer-approved SQLite-authoritative retirement rule across core doctor/state migrations and Memory Core/plugin-state sources, with the plugin install-index slice landing only as part of that scoped policy.

    Do we have a high-confidence way to reproduce the issue?

    Yes. Source inspection shows current main still has warning-preserving paths for unresolved plugin install-index conflicts, plugin-state sidecar row conflicts, and Memory Core sources when SQLite rows already exist; I did not run a packaged upgrade because this review is read-only.

    Is this the best way to solve the issue?

    Unclear. The right area is core doctor/state migration plus Memory Core migration policy, but the exact SQLite-authoritative retirement boundary needs maintainer judgment before a broad fix should land.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • The safe retirement rule for legacy sources with existing SQLite rows is a persisted-state migration policy decision: archiving too broadly could hide true conflicts, while archiving too narrowly keeps warning noise permanent.
    • Landing the open plugin install-index PR alone would still leave Memory Core and other legacy-source warning classes unresolved.

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

    Label changes

    Label justifications:

    • P2: This is a normal upgrade/state-migration regression causing persistent operator warnings without a confirmed runtime outage in this issue.
    • impact:other: The affected surface is persistent state migration and doctor/operator diagnostics, which is maintainer-visible but outside the more specific owned impact labels for this issue.
    Evidence reviewed

    What I checked:

    • Live issue state: The issue is still open with source-repro, needs-maintainer-review, and needs-product-decision labels; later comments broaden the affected surface beyond the original plugin install-index warning to Memory Core and plugin-state sidecar sources.
    • Current plugin install-index conflict still repeats for unresolved conflicts: Current main still returns the recurring warning and exits before archiving plugins/installs.json whenever merged install metadata has conflicts. (src/infra/state-migrations.ts:1655, d1cbe29f3d52)
    • Current plugin install-index fix is intentionally narrow: The supersession predicate only accepts exact-version legacy npm specs whose current authoritative identity has the same version, so newer-current/older-legacy and floating-selector cases can still remain on the warning path. (src/infra/state-migrations.ts:501, d1cbe29f3d52)
    • Regression tests preserve remaining conflict behavior: Tests still assert that plugin install-index conflicts remain unarchived when current metadata lacks authoritative identity or same-version npm records have unresolved selector/package/spec drift. (src/commands/doctor-state-migrations.test.ts:2190, d1cbe29f3d52)
    • Plugin-state sidecar conflicts can still repeat: Current main keeps the plugin-state sidecar when a non-expired row already exists in shared SQLite with different content, and tests assert the source remains unarchived in that case. (src/infra/state-migrations.ts:1596, d1cbe29f3d52)
    • Memory Core still leaves legacy sources when SQLite rows exist: Memory Core doctor migration skips import and leaves the legacy source in place whenever the target SQLite namespace already has rows, matching the repeated Memory Core warning reported in the comments. (extensions/memory-core/doctor-contract-api.ts:242, d1cbe29f3d52)

    Likely related people:

    • vincentkoc: Authored the merged partial plugin install-index fix and appears in current release/main history for the state-migration files. (role: recent area contributor; confidence: high; commits: 5cebe9666790, c645ec4555c0; files: src/infra/state-migrations.ts, src/commands/doctor-state-migrations.test.ts, extensions/memory-core/doctor-contract-api.ts)
    • steipete: Authored the SQLite installed-plugin index persistence change that created the canonical store involved in the plugin install-index warning class. (role: feature-history owner; confidence: medium; commits: 5443baa8527e; files: src/plugins/installed-plugin-index-store.ts, src/infra/state-migrations.ts)
    • Dallin Romney: Authored the repeat doctor state migration repair commit that changed the relevant state-migration behavior and regression coverage. (role: adjacent migration repair contributor; confidence: medium; commits: 30b9e123b871; files: src/infra/state-migrations.ts, src/commands/doctor-state-migrations.test.ts)
    • Ayaan Zaidi: Recent plugin-state import TTL work touched the sibling plugin-state migration path where duplicate rows can still leave legacy sources in place. (role: adjacent plugin-state migration contributor; confidence: medium; commits: 0d41316bcc34; files: src/infra/state-migrations.ts)
    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.
  3. added
    P2Normal backlog priority with limited blast radius.
    impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.
    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
  4. pfrederiksen commented on Jun 10, 2026

    @pfrederiksen
    Contributor

    Additional confirmation from another Linux install after updating to OpenClaw 2026.6.5 (5181e4f).

    The post-upgrade check itself is clean:

    $ openclaw doctor --post-upgrade --json
    {
      "probesRun": [
        "plugin.index_unavailable",
        "plugin.entry_unresolved",
        "plugin.manifest_drift"
      ],
      "findings": []
    }

    However, normal CLI/log output continues to emit a legacy state migration warning after doctor repair/checks have run:

    [state-migrations] Legacy state migration warnings:
    - Skipped Memory Core short-term recall import for /root/.openclaw/workspace-slab-scout because SQLite rows already exist; left legacy source in place
    

    openclaw doctor --lint --json --severity-min info still reports:

    {
      "checkId": "core/doctor/legacy-state",
      "severity": "warning",
      "message": "Memory Core short-term recall: /root/.openclaw/workspace-slab-scout/memory/.dreams/short-term-recall.json -> SQLite plugin state",
      "path": "/root/.openclaw",
      "fixHint": "Run `openclaw doctor --fix` to migrate legacy state."
    }

    This looks like the same class of non-clean terminal state as the plugin install metadata case described above: the migrated/canonical SQLite state already has rows, but the legacy source remains in place, so subsequent commands keep surfacing migration warnings. Runtime impact observed here is warning noise only; gateway health, Telegram, cron doctor, and dashboard health were otherwise clean after the update.

  5. added
    clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.
    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.
    and removed
    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.
    on Jun 11, 2026
  6. MarcoBrozzetti commented on Jun 14, 2026

    @MarcoBrozzetti

    Corroborating data point: still present on 2026.6.6 (644605a), macOS 26.4 / Node 25.8, git install. Prior confirmations here were Linux on 2026.6.1 / 2026.6.5, so this persists in the latest release on macOS too. doctor --fix does not clear it.

    Affected surface is broader than the plugin install-index + Memory Core paths. On this install the "left in place because archive already exists / rows already exist" branch recurs for many legacy sources:

    • tasks/runs.sqlite, flows/registry.sqlite
    • telegram/update-offset-{default,morpheus,orion,selena,vesper}.json
    • agents/main/sessions/sessions.json.telegram-sent-messages.json, …telegram-message-dispatch-default.json
    • plugin-state sidecar telegram/telegram.bot-info-cache/default ("6 rows already existed in shared state")
    • ~28 Memory Core lines (daily ingestion / session ingestion / short-term recall / phase signals) across the workspace and per-agent dirs

    Every openclaw CLI invocation prints ~40 such lines on stdout.

    Evidence that canonical SQLite is authoritative (supports the "retire legacy sources when SQLite is proven authoritative" direction in the review): ~/.openclaw/state/openclaw.sqlite is the live store — actively written (mtime seconds-old) — and its tables hold the migrated data: task_runs=640, flow_runs=980, installed_plugin_index=1, and plugin_state_entries.plugin_id ∈ {telegram, telegram-message-dispatch-dedupe, memory-core, …}. Meanwhile every legacy source file's mtime predates the running gateway's start by hours (all ≤ 08:50; gateway up since 09:51) — i.e. the runtime reads/writes SQLite and never touches the legacy files; they are vestigial.

    Why manual cleanup isn't a safe operator workaround (reinforces needs-product-decision): the plugin/telegram/task/flow legacy files can be moved aside by hand, but the Memory Core legacy sources sit inside the live agent memory/ directory (distiller state, hundreds of evolution cycles, skills cache), so an operator can't hand-retire them without risking agent memory. A core-side auto-retire gated on "SQLite proven authoritative" looks like the only safe resolution.

    Happy to attach a full openclaw status --all or a SQLite table dump if useful.

  7. 100yenadmin commented on Jun 18, 2026

    @100yenadmin
    Contributor

    Additional fresh reproduction from a local OpenClaw 2026.6.8 rollout after a targeted plugin reinstall/registry refresh.

    Environment:

    • OpenClaw: 2026.6.8 (844f405)
    • Plugin being repaired: @martian-engineering/lossless-claw@0.13.1
    • Platform: macOS launchd gateway

    Commands run:

    openclaw plugins install @martian-engineering/lossless-claw@0.13.1 --force
    openclaw plugins registry --refresh --json
    openclaw config validate --json
    launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/ai.openclaw.gateway.plist
    openclaw plugins list

    Observed result:

    [state-migrations] Legacy state migration warnings:
    - Left plugin install index in place because shared SQLite state has conflicting plugin install metadata for: acpx, codex, gbrain, lossless-claw, tokenjuice
    

    The active runtime entry is correct after the reinstall:

    Lossless Context Management ... lossless-claw ... ~/.openclaw/npm/projects/martian-engineering-lossless-claw-*/node_modules/@martian-engineering/lossless-claw/dist/index.js ... 0.13.1
    

    But stale legacy package metadata remains present outside the active npm project path:

    ~/.openclaw/node_modules/@martian-engineering/lossless-claw/package.json => 0.12.0
    ~/.openclaw/extensions/node_modules/@martian-engineering/lossless-claw/package.json => 0.12.0
    ~/.openclaw/npm/projects/martian-engineering-lossless-claw-*/node_modules/@martian-engineering/lossless-claw/package.json => 0.13.1
    

    Other validation from the same rollout:

    openclaw config validate --json => {"valid":true,"path":"~/.openclaw/openclaw.json"}
    Gateway restarted successfully and loaded lossless-claw.
    Lossless startup route: Compaction summarization model openai/gpt-5.4-mini; fallback openai/gpt-5.4.
    

    This matches the original symptom: the operator-facing warning persists after the targeted reinstall and registry refresh even though the active plugin runtime version is correct.

  8. motochan commented on Jun 18, 2026

    @motochan

    Still present in 2026.6.8 (844f405). Same [state-migrations] warning on every CLI invocation:

    Left plugin install index in place because shared SQLite state has conflicting plugin install metadata for: brave, codex, whatsapp

    Adding some diagnostic detail in case it helps narrow the cause:

    • All three flagged plugins are user-installed (under ~/.openclaw/npm/projects/...), not stock. They're the only non-stock plugins on the instance.
    • Their install records in installed_plugin_index are clean — single entries, valid installPath, resolvedVersion == version, no duplicates or orphans. openclaw plugins doctor reports no issues and all three are enabled and functional.
    • Two of the three (brave, whatsapp) are at 2026.5.28 — which is their latest available version — while the host is 2026.6.8. openclaw plugins update confirms "up to date," so the version skew can't be resolved operator-side.
    • openclaw plugins registry --refresh regenerates the index (refresh_reason flips policy-changed → manual, fresh timestamp) but the warning is unchanged — consistent with the original report that doctor --fix doesn't clear it.
    • migration_runs is empty and schema_meta shows a single schema_version 1 row, so the warning appears to be recomputed live each boot rather than persisted — which is why no operator-side action clears it.

    My reading of this? The migration heuristic flags user-installed plugins whose version trails the host, even when their install metadata is valid and the plugins work. Cosmetic but it nags on every command. Happy to provide full table dumps if useful.

  9. removed
    clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.
    clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.
    on Jun 19, 2026
  10. markr9805 commented on Jul 11, 2026

    @markr9805

    Same root cause, but this crashes the gateway — not just a warning.

    Experiencing the same class of legacy state-migration skip-warnings on 2026.7.1-beta.5 (macOS, npm global install), but with a strictly worse outcome: these warnings are escalated to a fatal throw by runDoctorConfigPreflight, putting the gateway in a hard crash-loop that doctor --fix cannot break.

    Symptoms

    • LaunchAgent ai.openclaw.gateway restarts 58+ times, exit code 1 each time, port 18789 never opens.
    • doctor --fix does not recover — warnings reappear every run.
    • stderr is redirected to /dev/null in the plist, so the crash reason is invisible unless you run the gateway in foreground.

    Root cause (from /tmp/openclaw/openclaw-2026-07-11.log + dist inspection on 2026.7.1-beta.5)

    The warnings in question are benign idempotency skips:

    • Skipped because SQLite rows already exist (Memory Core, across 6 workspaces)
    • Left migrated task flow sidecar in place because archive already exists

    noteStartupStateMigrationResult pushes them into startupMigrationWarnings unconditionally:

    const noteStartupStateMigrationResult = (result) => {
        startupMigrationWarnings.push(...result.warnings);
        noteStateMigrationResult(result);
    };

    Then runDoctorConfigPreflight throws when the array is non-empty (doctor-config-preflight-*.js:~197):

    if (startupMigrationWarnings.length > 0) {
        throw new Error("OpenClaw startup migrations did not complete cleanly…");
    }

    The self-perpetuating loop: startup-migration-checkpoint-*.js only calls recordSuccessfulStartupMigrations when warnings.length === 0. The skip-warnings fire every run → checkpoint never records → needsStartupMigrationCheckpoint stays true → preflight re-throws → gateway exits 1 → LaunchAgent restarts → repeat. doctor --fix can't help because it doesn't silence the skips, and the checkpoint gate is never satisfied.

    Patch (local workaround)

    Filter the benign "already exists / already migrated" warnings out of noteStartupStateMigrationResult before the fatal length-check. Gateway recovered immediately — {"ok":true,"status":"live"} on port 18789, no further restarts.

    Why this should be P1, not P2

    The "limited blast radius" label holds only if these warnings stay warnings. On this version they're fatal: the gateway is fully down, silent (stderr → /dev/null), and doctor --fix is a no-op against it. Anyone hitting this on a headless box with auto-restart has a dead gateway and no obvious recovery path. Same fix as the cosmetic case (don't treat idempotency skips as failures — but the severity argument is different.

    Happy to file a separate linked ticket for the fatal-throw path if that's easier to track. Leaving it here for now since the underlying defect and fix are the same.
    EOF
    )

  11. markr9805 commented on Jul 11, 2026

    @markr9805

    Follow-up with log evidence for the crash-loop severity claim.

    186 fatal throws in ~16 minutes (10:38:16 → 10:54:38 EDT today), same error each time:

    [openclaw] Error: OpenClaw startup migrations did not complete cleanly; refusing to report the gateway ready.
    [openclaw] Reason: OpenClaw startup migrations did not complete cleanly; refusing to report the gateway ready.
    - Left migrated task flow sidecar in place because archive already exists: /Users/mark/.openclaw/flows/registry.sqlite.migrated
    Run "openclaw doctor --fix" against the mounted state/config, then restart the container.
    

    So the same "archive already exists" skip-warning from this ticket is what kills the gateway on 2026.7.1-beta.5. doctor --fix is suggested in the error message itself, but as noted above it can't break the loop — the checkpoint gates on warnings.length === 0 and these skips fire every run.

    stderr → /dev/null in the default LaunchAgent plist, so this is silent unless you run the gateway in foreground or read /tmp/openclaw/openclaw-*.log.

  12. h-mascot commented on Jul 13, 2026

    @h-mascot
    Contributor

    Fresh runtime-blocking reproduction from the HeraldLabs beta cohort on OpenClaw 2026.7.1-beta.6.

    Environment

    • Windows 11 Pro 22H2
    • Node v24.16.0
    • OpenClaw 2026.7.1-beta.6 (a783a2b)
    • Install: npm install -g openclaw@2026.7.1-beta.6
    • Provider/model: litellm/gpt55

    Runtime impact

    This was not warning-only. The gateway refused to start, the Windows Scheduled Task exited immediately, port 18789 remained free, and TUI/Telegram were unavailable.

    Exact startup error:

    [openclaw] Could not start the CLI.
    [openclaw] Reason: OpenClaw startup migrations did not complete cleanly; refusing to report the gateway ready.
    - Left plugin install index in place because shared SQLite state has conflicting plugin install metadata for: discord
    Run "openclaw doctor --fix" against the mounted state/config, then restart the container.
    

    openclaw doctor --fix did not reconcile the conflict. openclaw gateway status --deep reported the service loaded but stopped, with abnormal WebSocket closure 1006 and no process listening on 127.0.0.1:18789.

    The tester did not actively use Discord; stale Discord install metadata still blocked the entire gateway.

    Recovery used

    The tester first backed up both files, then moved only the stale legacy index aside:

    copy "%USERPROFILE%\.openclaw\plugins\installs.json" "%USERPROFILE%\.openclaw\repair-backup-20260713\installs.json"
    copy "%USERPROFILE%\.openclaw\state\openclaw.sqlite" "%USERPROFILE%\.openclaw\repair-backup-20260713\openclaw.sqlite"
    ren "%USERPROFILE%\.openclaw\plugins\installs.json" "installs.json.legacy-conflict-20260713"
    openclaw plugins registry --refresh
    openclaw doctor --fix
    openclaw config validate
    openclaw gateway start
    openclaw gateway status --deep

    Post-recovery verification

    • Gateway runtime: PASS
    • Connectivity probe: PASS
    • Scheduled Task: running
    • Port 18789: active
    • OpenClaw TUI/main agent: PASS
    • Telegram/Rook: PASS
    • Config/session continuity: PASS

    This confirms the conflict class persists on beta.6 and can escalate from recurring warning noise to a full Windows gateway startup blocker. Full redacted tester report and evidence: HeraldLab/OpenclawQA#24

  13. howsTricks commented on Jul 15, 2026

    @howsTricks

    Is the @clawsweeper bot stuck? I’ve gotten 8 in the last 24 hours emails saying it’s started a review on this bug, seems like it keeps on restarting.

  14. steipete commented on Jul 28, 2026

    @steipete
    Contributor

    Thank you for the detailed report and the exact warning. This has been fixed on current main by #107961 (landed commit ef110e9a0f42e5c99d56f0126e7e42c4284865aa). The production migration now preserves canonical shared SQLite plugin-install metadata, archives the conflicting retired plugins/installs.json, and reports a one-time informational notice instead of repeatedly warning or blocking startup (src/infra/state-migrations.plugin-state.ts:187-214). There is direct regression coverage for the exact reported conflict and a second doctor run: src/commands/doctor-state-migrations.test.ts:2656 asserts no warnings, preserved canonical metadata, archival to .migrated, and no recurring notice or warning on retry; src/infra/state-migrations.state-dir.test.ts:112 independently covers the early startup migration path. Closing as fixed. If the same warning is still reproducible after updating to a release containing #107961, please reopen with the exact version and redacted doctor output.

  15. locked as resolved and limited conversation to collaborators on Oct 7, 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

    P2Normal backlog priority with limited blast radius.bugSomething isn't workingclawsweeper: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.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.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