Skip to content

[Bug]: Upgrade to 2026.5.2 silently breaks Discord routing — installs.json records plugins as installed without fetching, and migration doesn't populate plugins.allow #77106

Closed

Description

@krj56

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

After upgrading from 2026.4.29 to 2026.5.2, the Discord channel plugin stopped loading; reproduced and confirmed by gateway logs showing the plugin missing from the active list and a plugins.allow is empty warning.

Steps to reproduce

  1. On an existing 2026.4.29 install with Discord channels working, run openclaw update --yes.
    ▎ 2. After the package update completes, run openclaw gateway restart.
    ▎ 3. Observe the gateway log line http server listening (8 plugins: bonjour, browser, device-pair, file-transfer, memory-core, phone-control, talk-voice, webhooks; 2.5s) — discord is absent.
    ▎ 4. Try to message a Discord-bound agent — no reply.

Expected behavior

In 2026.4.29, the Discord plugin loaded automatically based on channels.discord.enabled: true and bot account tokens, and agents replied on all configured Discord accounts.

Actual behavior

Discord plugin is not loaded after the upgrade. Three Discord bot identities (default/sales/sandy) fail to start. Gateway log emits: plugins.allow is empty; discovered non-bundled plugins may auto-load: brave, codex, discord. Set plugins.allow to explicit trusted ids. Additionally, openclaw doctor fails with tools.web.search.provider: web_search provider is not available: brave (install or enable plugin "brave", then run openclaw doctor --fix), and openclaw plugins install is itself blocked by the same config-validation error.

OpenClaw version

026.5.2 (8b2a6e5)

Operating system

macOS 26.2 (arm64)

Install method

pnpm (global)

Model

openai-codex/gpt-5.5

Provider / routing chain

openclaw → discord channel plugin → agent

Additional provider/model setup details

Pre-upgrade ~/.openclaw/openclaw.json had plugins.entries.brave and channels.discord.enabled: true with three account tokens (default/sales/sandy). No plugins.allow field existed. After upgrade, ~/.openclaw/plugins/installs.json listed @openclaw/brave-plugin@2026.5.2, @openclaw/codex@2026.5.2, @openclaw/discord@2026.5.2 with installedAt timestamps and integrity hashes, but ~/.openclaw/npm/node_modules/@openclaw/ contained only discord/.

Logs, screenshots, and evidence

Doctor output:                                                          
  ▎ Config invalid                                                
  ▎ File: ~/.openclaw/openclaw.json      
  ▎ Problem:                                                                
  ▎   - tools.web.search.provider: web_search provider is not available: 
  ▎ brave                                                                   
  ▎     (install or enable plugin "brave", then run openclaw doctor --fix)
  ▎ Gateway log after upgrade restart:                                      
  ▎ http server listening (8 plugins: bonjour, browser, device-pair, 
  ▎ file-transfer,                                                          
  ▎   memory-core, phone-control, talk-voice, webhooks; 2.5s)               
  ▎ plugins.allow is empty; discovered non-bundled plugins may auto-load: 
  ▎ brave, codex,                                                           
  ▎   discord. Set plugins.allow to explicit trusted ids.         
  ▎ installs.json (excerpt):                                                
  ▎ "discord": { "spec": "@openclaw/discord", "installPath":                
  ▎   "/Users/.../npm/node_modules/@openclaw/discord", "version": 
  ▎ "2026.5.2",                                                             
  ▎   "installedAt": "2026-05-04T02:27:32.442Z" }                 
  ▎ Filesystem at same time:                                                
  ▎ $ ls ~/.openclaw/npm/node_modules/@openclaw/                            
  ▎ discord                                                                 
  ▎ $ ls ~/.openclaw/npm/node_modules/@openclaw/brave-plugin                
  ▎ ls: ... No such file or directory

Impact and severity

Affected: any user upgrading to 2026.5.2 with Discord channels (and
▎ likely any non-bundled channel plugin) configured, plus anyone with
▎ tools.web.search.provider: brave.
▎ Severity: High — silently breaks chat routing on a daily-driver, with no
▎ clear error message pointing at the cause.
▎ Frequency: 1/1 observed upgrade.
▎ Consequence: All Discord-routed agents (3 in my case) stop responding.
▎ Recovery required ~30 minutes of manual diagnosis and an undocumented
▎ npm install --prefix ... --no-save --no-package-lock invocation, plus
▎ hand-editing plugins.allow.

Additional information

▎ Last known good: 2026.4.29. First known bad: 2026.5.2.
▎ Workaround sequence:
▎ 1. npm install --prefix ~/.openclaw/npm @openclaw/brave-plugin@2026.5.2
▎ @openclaw/codex@2026.5.2 @openclaw/discord@2026.5.2 --no-save
▎ --no-package-lock (the --no-save is critical — without listing every
▎ plugin, siblings are purged).
▎ 2. Add plugins.allow: ["brave","discord","openai","webhooks"] to config.
▎ 3. Restart gateway.

Activity

  1. added
    bugSomething isn't working
    on May 4, 2026
  2. clawsweeper commented on May 4, 2026

    @clawsweeper
    Contributor

    ClawSweeper status: review started.

    I am starting a fresh review of this issue: [Bug]: Upgrade to 2026.5.2 silently breaks Discord routing — installs.json records plugins as installed without fetching, and migration doesn't populate plugins.allow This is item 1/1 in the current shard. Shard 0/1.

    This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

    Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

  3. steipete commented on May 4, 2026

    @steipete
    Contributor

    Fixed on current main; this one needs the next release to ship the repair path.

    Proof from current main:

    • release-configured-plugin-installs runs the 2026.5.2 repair for configured channel/provider/harness plugins, including discord, brave, and agentRuntime.codex -> codex
    • missing recorded plugin installs whose package directory is gone are repaired from the catalog instead of being trusted as installed
    • update-time repair defers material installs while OPENCLAW_UPDATE_IN_PROGRESS is set and removes stale missing-install records so installs.json cannot keep claiming a plugin is installed without disk state
    • auto-enable sequencing adds repaired configured plugins back to plugins.allow
    • targeted regression gate passed: pnpm test src/commands/doctor/shared/release-configured-plugin-installs.test.ts src/commands/doctor/shared/missing-configured-plugin-install.test.ts (46 tests)

    Closing as fixed on main. The released 2026.5.2 package can still reproduce this until a release includes the current repair code.

  4. krj56 commented on May 4, 2026

    @krj56
    Author

    Thanks. One question for the next-release verification: my current config has manual workarounds in place — plugins.allow: ["brave","discord","openai","webhooks"] and the three @openclaw/* packages installed via npm install --prefix ... --no-save. Should the repair path be idempotent against those (safe to leave on upgrade), or is it better to revert to a pre-2026.5.2-style config before upgrading so the repair runs cleanly? Happy to test the upgrade path on my install either way and report.

  5. locked as resolved and limited conversation to collaborators on May 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

    bugSomething isn't working

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions