Repository navigation
Description
Bug Report: Upgrade from 2026.5.22 to 2026.7.1 — channels config lost, old plugin blocks Gateway startup
Environment
- From: OpenClaw 2026.5.22 (a374c3a)
- To: OpenClaw 2026.7.1 (2d2ddc4)
- OS: Windows 10.0.26200
- Plugin affected: @openclaw/qqbot (previously installed at v2026.5.22)
Summary
Upgrading from 2026.5.22 to 2026.7.1 via openclaw update caused two issues:
-
The entire
channelssection ofopenclaw.jsonwas dropped during migration, losing all channel-specific configuration (in this case, qqbot's appId, clientSecret, allowFrom, groupAllowFrom). -
The Gateway failed to start because the existing qqbot plugin (v2026.5.22) was incompatible with the Gateway v2026.7.1 runtime. The old plugin SDK surface changed (per 7.1 release notes: "Plugin authors MUST migrate to the new
openclaw/plugin-sdk/*surface"), but the upgrade process did not update the installed plugin, and the startup failure gave no actionable error message pointing to the incompatibility.
Bug 1: channels config lost during migration
Before upgrade (2026.5.22)
The config had both a plugin entry and a channels entry for qqbot:
// plugins.entries.qqbot — correctly removed in 7.1 migration
// channels.qqbot — entirely lost
{
channels: {
qqbot: {
enabled: true,
appId: "1904033356",
clientSecret: "***",
allowFrom: ["503911319"],
groupAllowFrom: [],
},
},
}After upgrade (2026.7.1)
The entire channels key is absent from the new config:
// New config top-level keys:
// agents, auth, browser, env, gateway, meta, models, plugins, session, skills, tools, ui, wizard
// ^^^ no 'channels' key
Workaround
Manually re-adding the channels.qqbot block to openclaw.json works and the Gateway loads it correctly. This confirms the config format hasn't changed — the migration script simply failed to carry over the channels section.
Impact
Any user with a channel configured (qqbot, telegram, signal, whatsapp, discord, slack, etc.) will lose their channel configuration when upgrading to 7.1. For qqbot users specifically, this also means losing appId/clientSecret which may need regeneration.
Bug 2: Old plugin version silently blocks Gateway startup
Timeline
openclaw updatecompletes successfully- Gateway restarts but crashes immediately with no clear error
openclaw doctor --fixruns but finds no configuration issues- Uninstalling qqbot plugin (
openclaw plugins uninstall qqbot) allows Gateway to start - Re-installing qqbot (
openclaw plugins update qqbotoropenclaw plugins install @openclaw/qqbot) installs v2026.7.1 and works
Issues
- The upgrade process did not update the already-installed qqbot plugin to match the new Gateway version
- Gateway startup failure gave no indication that an incompatible plugin was the cause
doctor --fixdid not detect or report the plugin incompatibility- Users with limited CLI experience were left with no actionable next steps
Expected behavior
- Config migration: The
channelssection should be preserved intact during upgrade, since its schema hasn't changed - Plugin compatibility: Either:
a. The upgrade process should update all installed plugins automatically, OR
b. The Gateway should detect incompatible plugins and print a specific error likePlugin "@openclaw/qqbot@5.22" is incompatible with Gateway 7.1. Run "openclaw plugins update @openclaw/qqbot" to fix.
c.doctor --fixshould detect and optionally remediate plugin version mismatches
Log evidence
From config-audit.jsonl:
2026-07-15T08:30:37Z—openclaw updatewrites new config (8904 bytes, channels absent)2026-07-15T10:24:44Z—openclaw plugins uninstall qqbot(user's workaround)2026-07-15T10:27:14Z—openclaw plugins update qqbot(reinstall at correct version)
From installs.json.migrated:
- qqbot plugin install record shows
version: "2026.5.22"after migration — was not updated
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jul 16, 2026
Thanks for the context here. I did a careful shell check against current
main, and this is already implemented.Close as implemented on current main: update finalization restores missing channel entries from the pre-update snapshot, and stale or failing plugins are updated, quarantined, or isolated with actionable diagnostics rather than silently blocking Gateway.
So I’m closing this as already implemented rather than keeping a duplicate issue open.
Review details
Best possible solution:
Keep the current update-finalization and per-plugin quarantine flow as the canonical upgrade recovery path.
Do we have a high-confidence way to reproduce the issue?
No current-main failure was reproduced; source and regression coverage now model the former missing-channel state and show it is restored during update finalization.
Is this the best way to solve the issue?
Yes: restoring only missing pre-update channel entries before plugin convergence preserves user-authored configuration while retaining canonical Doctor migration ownership.
Security review:
Security review: This issue has no proposed patch requiring a security review.
AGENTS.md: found and applied where relevant.
What I checked:
src/cli/update-cli/update-command-config.ts:108, 1f15bc92f903)src/cli/update-cli.test.ts:5678, 1f15bc92f903)src/cli/update-cli/update-command-plugins.ts:371, 1f15bc92f903)src/cli/update-cli/update-command-post-core.ts:204, 1f15bc92f903)src/cli/update-cli/update-command-post-core.ts:219, 1f15bc92f903)src/cli/update-cli/update-command-post-core.ts:204, 1f15bc92f903)Likely related people:
src/cli/update-cli/update-command-post-core.ts,src/cli/update-cli/update-command-fresh-doctor.ts)src/cli/update-cli/,src/infra/update-post-core-finalize.ts)src/infra/state-migrations.channel-pairing.ts)Codex review notes: model internal, reasoning high; reviewed against 1f15bc92f903; fix evidence: commit 1f15bc92f903, main fix timestamp 2026-08-07T19:47:26-07:00.
vincentkoc commentedon Aug 11, 2026
Closing as completed.
Channel-loss restoration landed in 61ee975: it restores missing channel entries from the pre-update snapshot, and the fix plus regression coverage is stable-shipped in
openclaw@2026.7.1-2.Current
mainnow updates trusted official plugins, disables failed plugin updates withopenclaw update repairguidance, repairs stale managed OpenClaw host links (#118304), and quarantines owned broken plugin payloads so the Gateway boots with the affected plugin reported asconfigured-unavailable(#110239).openclaw@2026.8.1-beta.1includes both the quarantine and stale-host repairs.The final startup-release preservation (b8b878e, #120085) and obsolete managed-shadow cleanup (d9e43b1, #121261) are on
mainonly as of August 11, 2026.No remaining current-
maindefect matching this report is known.