Repository navigation
Description
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
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
rogerallen1 commentedon Jun 4, 2026
The affected plugins are
braveandlobster. 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.jsonshould be moved aside, or whether doctor should provide clearer repair guidance.clawsweeper commentedon Jun 4, 2026
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:
canonicalCanonical: #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:
same_root_cause: [Bug]: Upgrade leaves repeated shared SQLite plugin install metadata conflict warnings for codex/discord #90418 - Closed issue tracked the repeated plugin install-index warning for codex/discord and was fixed by a narrower merged plugin-index PR.partial_overlap: fix(doctor): archive superseded plugin install index conflicts #93648 - Merged PR fixed one plugin install-index branch and explicitly kept this issue open for broader legacy-source retirement policy.partial_overlap: fix(doctor): archive superseded plugin install indexes #94086 - Open PR is a candidate for an older-version plugin install-index subset, not the Memory Core or broader legacy-source warning classes.partial_overlap: [Bug]: Stale legacy installs.json permanently triggers "conflicting plugin install metadata for: brave" #92811 - Closed issue contributed detailed brave install-index diagnostics for the same plugin-index subset.partial_overlap: [state-migrations] "conflicting plugin install metadata" warning has no native reconcile and corrupts --json output #90040 - Closed issue covered the same warning family plus JSON stdout corruption, while this issue remains about warning cleanup itself.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:
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:
plugins/installs.jsonwhenever merged install metadata has conflicts. (src/infra/state-migrations.ts:1655, d1cbe29f3d52)src/infra/state-migrations.ts:501, d1cbe29f3d52)src/commands/doctor-state-migrations.test.ts:2190, d1cbe29f3d52)src/infra/state-migrations.ts:1596, d1cbe29f3d52)extensions/memory-core/doctor-contract-api.ts:242, d1cbe29f3d52)Likely related people:
src/infra/state-migrations.ts,src/commands/doctor-state-migrations.test.ts,extensions/memory-core/doctor-contract-api.ts)src/plugins/installed-plugin-index-store.ts,src/infra/state-migrations.ts)src/infra/state-migrations.ts,src/commands/doctor-state-migrations.test.ts)src/infra/state-migrations.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.pfrederiksen commentedon Jun 10, 2026
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:
openclaw doctor --lint --json --severity-min infostill 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.
MarcoBrozzetti commentedon Jun 14, 2026
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 --fixdoes 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.sqlitetelegram/update-offset-{default,morpheus,orion,selena,vesper}.jsonagents/main/sessions/sessions.json.telegram-sent-messages.json,…telegram-message-dispatch-default.jsontelegram/telegram.bot-info-cache/default("6 rows already existed in shared state")Every
openclawCLI 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.sqliteis 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, andplugin_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 agentmemory/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 --allor a SQLite table dump if useful.100yenadmin commentedon Jun 18, 2026
Additional fresh reproduction from a local OpenClaw 2026.6.8 rollout after a targeted plugin reinstall/registry refresh.
Environment:
2026.6.8 (844f405)@martian-engineering/lossless-claw@0.13.1Commands run:
Observed result:
The active runtime entry is correct after the reinstall:
But stale legacy package metadata remains present outside the active npm project path:
Other validation from the same rollout:
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.
motochan commentedon Jun 18, 2026
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, whatsappAdding some diagnostic detail in case it helps narrow the cause:
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.
markr9805 commentedon Jul 11, 2026
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 byrunDoctorConfigPreflight, putting the gateway in a hard crash-loop thatdoctor --fixcannot break.Symptoms
ai.openclaw.gatewayrestarts 58+ times, exit code 1 each time, port 18789 never opens.doctor --fixdoes not recover — warnings reappear every run./dev/nullin 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 existsnoteStartupStateMigrationResultpushes them intostartupMigrationWarningsunconditionally:Then
runDoctorConfigPreflightthrows when the array is non-empty (doctor-config-preflight-*.js:~197):The self-perpetuating loop:
startup-migration-checkpoint-*.jsonly callsrecordSuccessfulStartupMigrationswhenwarnings.length === 0. The skip-warnings fire every run → checkpoint never records →needsStartupMigrationCheckpointstays true → preflight re-throws → gateway exits 1 → LaunchAgent restarts → repeat.doctor --fixcan'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
noteStartupStateMigrationResultbefore 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), anddoctor --fixis 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
)
markr9805 commentedon Jul 11, 2026
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:
So the same "archive already exists" skip-warning from this ticket is what kills the gateway on 2026.7.1-beta.5.
doctor --fixis suggested in the error message itself, but as noted above it can't break the loop — the checkpoint gates onwarnings.length === 0and these skips fire every run.stderr →
/dev/nullin the default LaunchAgent plist, so this is silent unless you run the gateway in foreground or read/tmp/openclaw/openclaw-*.log.h-mascot commentedon Jul 13, 2026
Fresh runtime-blocking reproduction from the HeraldLabs beta cohort on OpenClaw 2026.7.1-beta.6.
Environment
v24.16.02026.7.1-beta.6 (a783a2b)npm install -g openclaw@2026.7.1-beta.6litellm/gpt55Runtime impact
This was not warning-only. The gateway refused to start, the Windows Scheduled Task exited immediately, port
18789remained free, and TUI/Telegram were unavailable.Exact startup error:
openclaw doctor --fixdid not reconcile the conflict.openclaw gateway status --deepreported the service loaded but stopped, with abnormal WebSocket closure1006and no process listening on127.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:
Post-recovery verification
18789: activeThis 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
howsTricks commentedon Jul 15, 2026
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.
steipete commentedon Jul 28, 2026
Thank you for the detailed report and the exact warning. This has been fixed on current
mainby #107961 (landed commit ef110e9a0f42e5c99d56f0126e7e42c4284865aa). The production migration now preserves canonical shared SQLite plugin-install metadata, archives the conflicting retiredplugins/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:2656asserts no warnings, preserved canonical metadata, archival to.migrated, and no recurring notice or warning on retry;src/infra/state-migrations.state-dir.test.ts:112independently 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.