Skip to content

Upgrade 5.22→7.1: channels config dropped, old plugin blocks Gateway startup #108299

Closed

Description

@Bang9401

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:

  1. The entire channels section of openclaw.json was dropped during migration, losing all channel-specific configuration (in this case, qqbot's appId, clientSecret, allowFrom, groupAllowFrom).

  2. 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

  1. openclaw update completes successfully
  2. Gateway restarts but crashes immediately with no clear error
  3. openclaw doctor --fix runs but finds no configuration issues
  4. Uninstalling qqbot plugin (openclaw plugins uninstall qqbot) allows Gateway to start
  5. Re-installing qqbot (openclaw plugins update qqbot or openclaw 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 --fix did not detect or report the plugin incompatibility
  • Users with limited CLI experience were left with no actionable next steps

Expected behavior

  • Config migration: The channels section 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 like Plugin "@openclaw/qqbot@5.22" is incompatible with Gateway 7.1. Run "openclaw plugins update @openclaw/qqbot" to fix.
    c. doctor --fix should detect and optionally remediate plugin version mismatches

Log evidence

From config-audit.jsonl:

  • 2026-07-15T08:30:37Z — openclaw update writes 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

Activity

  1. added
    P0Emergency: data loss, security bypass, crash loop, or unusable core runtime.
    impact:data-lossCan lose, corrupt, or silently drop user/session/config data.
    impact:crash-loopCrash, hang, restart loop, or process-level availability failure.
    impact:ux-release-blockerA non-technical user is blocked without terminal, logs, config, or support.
    maturity:stableBroken existing behavior primarily owned by an M4/M5 scorecard surface.
    issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.
    clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.
    clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.
    clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.
    on Jul 16, 2026
  2. clawsweeper commented on Jul 16, 2026

    @clawsweeper
    Contributor

    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:

    Likely related people:

    • vincentkoc: Authored the merged post-core update/Doctor repair that established the adjacent upgrade-finalization path. (role: recent update-finalization contributor; confidence: high; commits: 8029b3bbb850; files: src/cli/update-cli/update-command-post-core.ts, src/cli/update-cli/update-command-fresh-doctor.ts)
    • steipete: Recent update orchestration refactoring and adjacent repair history connect this person to the lifecycle now owning the recovery. (role: update-orchestration contributor; confidence: high; commits: a627a77e; files: src/cli/update-cli/, src/infra/update-post-core-finalize.ts)
    • smoe: Authored the merged legacy default-channel allowlist migration, which is related but distinct from this issue's full channel restoration path. (role: adjacent migration contributor; confidence: medium; commits: 5e4107400963; files: 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.

  3. self-assigned this
    on Jul 30, 2026
  4. added
    clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.
    maturity:stableBroken existing behavior primarily owned by an M4/M5 scorecard surface.
    issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.
    and removed
    maturity:stableBroken existing behavior primarily owned by an M4/M5 scorecard surface.
    clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.
    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.
    clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.
    issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.
    on Jul 31, 2026
  5. vincentkoc commented on Aug 11, 2026

    @vincentkoc
    Member

    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 main now updates trusted official plugins, disables failed plugin updates with openclaw update repair guidance, repairs stale managed OpenClaw host links (#118304), and quarantines owned broken plugin payloads so the Gateway boots with the affected plugin reported as configured-unavailable (#110239). openclaw@2026.8.1-beta.1 includes both the quarantine and stale-host repairs.

    The final startup-release preservation (b8b878e, #120085) and obsolete managed-shadow cleanup (d9e43b1, #121261) are on main only as of August 11, 2026.

    No remaining current-main defect matching this report is known.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P0Emergency: data loss, security bypass, crash loop, or unusable core runtime.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.impact:data-lossCan lose, corrupt, or silently drop user/session/config data.impact:ux-release-blockerA non-technical user is blocked without terminal, logs, config, or support.issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.maturity:stableBroken existing behavior primarily owned by an M4/M5 scorecard surface.

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions