Skip to content

Feishu channel crashes after upgrading to 2026.5.2 — appId/appSecret fields incompatible #77116

Closed as not planned

Description

@lyh-github-97

Bug Description

After upgrading to OpenClaw 2026.5.2, the Feishu channel becomes unusable. The gateway crashes and enters a restart loop.

Steps to Reproduce

  1. Upgrade OpenClaw from 2026.4.x to 2026.5.2
  2. Observe gateway crash loop in logs

Root Cause

Version 2026.5.2 changed the Feishu account schema. Fields previously valid in `channels.feishu.accounts.*` are no longer accepted:

  • `appId`
  • `appSecret`
  • `requireMention`
  • `groupPolicy`
  • `groupAllowFrom`
  • `dmPolicy`
  • `allowFrom`

Even removing the policy fields is not sufficient — `appId` and `appSecret` themselves are now rejected, making the entire Feishu channel configuration invalid.

Expected Behavior

Feishu channel should work normally after upgrade, or migration instructions should be provided.

Workaround

Downgrading to 2026.4.22 restores Feishu functionality.

Environment

  • OpenClaw version: 2026.5.2 (canary)
  • Channel: Feishu/Lark
  • Platform: macOS

Activity

  1. clawsweeper commented on May 4, 2026

    @clawsweeper
    Contributor

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 14, 2026, 3:12 PM ET / 19:12 UTC.

    Summary
    Keep open: current main still lacks the channel generator fix for user-input JSON Schema, and generated Feishu metadata still marks defaulted optional fields as required even though the current Feishu runtime schema and docs accept the reported credential and policy fields.

    Reproducibility: yes. for source-level reproduction: reporter logs show the crash loop, and current main still validates bundled channel input against generated JSON Schema that marks defaulted optional channel fields as required; no live packaged upgrade was run.

    Next step
    The remaining repair is narrow, source-backed, VISION-aligned, and no canonical open PR currently owns it.

    Review details

    Best possible solution:

    Land the generator-level input JSON Schema repair, regenerate bundled channel metadata, and add focused regression coverage for the reported Feishu config shape; add doctor cleanup only for proven stale external-plugin state.

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

    Yes for source-level reproduction: reporter logs show the crash loop, and current main still validates bundled channel input against generated JSON Schema that marks defaulted optional channel fields as required; no live packaged upgrade was run.

    Is this the best way to solve the issue?

    Yes: the best fix is the generator-level input-schema repair already used by sibling plugin config generation, not Feishu-only runtime shims or new config options.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • The review establishes a source-level current-main problem, not a live packaged 2026.5.2-to-current upgrade reproduction.
    • The reporter used a separately installed @larksuite/openclaw-lark plugin, so the fix PR should verify whether stale external plugin metadata or doctor cleanup is also needed.

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

    Label changes

    Label justifications:

    • P1: The report describes an upgrade regression that can put the gateway in a restart loop and break an active Feishu channel workflow.
    • impact:crash-loop: Reporter logs show repeated gateway restarts after Feishu channel config validation fails.
    • impact:auth-provider: The failing config path includes Feishu appId/appSecret account credentials required for channel authentication.
    Evidence reviewed

    Acceptance criteria:

    • node scripts/run-vitest.mjs src/channels/plugins/config-schema.test.ts
    • node scripts/run-vitest.mjs src/config/validation.channel-metadata.test.ts extensions/feishu/src/config-schema.test.ts
    • Regenerate bundled channel config metadata with the existing generator and inspect the Feishu schema required list for defaulted optional fields.

    What I checked:

    • Issue remains open with concrete repro data: Live this issue is still open; the reporter supplied restart-loop logs and the Feishu config shape with accounts.*.appId/appSecret plus policy fields, and no closing PR is linked.
    • Current channel schema generator lacks input-mode JSON Schema: buildChannelConfigSchema exports Zod JSON Schema with draft/unrepresentable options only; it does not pass io: "input". (src/channels/plugins/config-schema.ts:147, a189baa4b344)
    • Current channel test preserves the problematic required default behavior: The adjacent test still expects z.boolean().default(true) to produce required: ["enabled"], which is output-schema behavior for user input validation. (src/channels/plugins/config-schema.test.ts:23, a189baa4b344)
    • Raw bundled channel validation uses generated schemas without defaults: collectRawBundledChannelConfigIssues validates bundled channel config with applyDefaults: false, so generated required defaults can reject existing user config before runtime defaults apply. (src/config/validation.ts:322, a189baa4b344)
    • Raw validation path is reachable when bundled channel validation is requested: validateConfigObjectRaw calls collectRawBundledChannelConfigIssues when validateBundledChannels is enabled. (src/config/validation.ts:913, a189baa4b344)
    • Current Feishu runtime schema accepts the reported fields: Feishu config includes root dmPolicy/allowFrom/groupPolicy and account/top-level appId/appSecret fields, so the current remaining source-level mismatch is generated metadata/input-schema handling rather than missing runtime Feishu fields. (extensions/feishu/src/config-schema.ts:183, a189baa4b344)

    Likely related people:

    • ai-hpc: Authored the direct this issue generator-level repair commit that added io: "input" and regenerated bundled channel metadata, but that commit is not on current main. (role: prior fix author; confidence: high; commits: 0a5a9020ef4b; files: src/channels/plugins/config-schema.ts, src/channels/plugins/config-schema.test.ts, src/config/bundled-channel-config-metadata.generated.ts)
    • Vincent Koc: Current checkout blame on the channel schema generator and Feishu config schema points to the recent release/test-gate grafted commit, so this person is relevant for current-main state routing. (role: recent area contributor; confidence: medium; commits: ae8da992ce38; files: src/channels/plugins/config-schema.ts, extensions/feishu/src/config-schema.ts)
    • m1heng: The Feishu package metadata describes the plugin as community maintained by @m1heng, and the issue timeline mentions/subscribes that handle for this regression. (role: Feishu plugin area owner; confidence: medium; files: extensions/feishu/package.json)
    • Peter Steinberger: History for channel config schema and generated metadata includes the plugin-owned metadata and schema deduplication refactors that define the affected validation surface. (role: config metadata contributor; confidence: medium; commits: 40bd36e35d33, c9ab095099f9; files: src/channels/plugins/config-schema.ts, src/config/bundled-channel-config-metadata.generated.ts)
    • Josh Palmer: Feature history for Feishu/Lark config points to the original channel support commit, useful for routing but not direct fault attribution. (role: original feature contributor; confidence: low; commits: 2483f26c235a; files: extensions/feishu/src/config-schema.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.
  2. lyh-github-97 commented on May 4, 2026

    @lyh-github-97
    Author

    Thanks for the review. Here are the requested details — exact error log and the Feishu config that triggered it.

    Exact crash log (May 3, 2026 ~17:56 Beijing time)

    The gateway entered a crash loop — it tried to restart ~80 times in 10 minutes:

    ```
    2026-05-03T17:56:14.296+08:00 [gateway] signal SIGTERM received
    2026-05-03T17:56:14.331+08:00 [gateway] received SIGTERM; shutting down
    2026-05-03T17:56:15.345+08:00 [ws] ⇄ res ✗ sessions.list 1000ms errorCode=UNAVAILABLE errorMessage=Error: Invalid config at /Users/liyaohua/.openclaw/openclaw.json:

    • channels.feishu: invalid config: must NOT have additional properties
    • channels.feishu: invalid config: must NOT have additional properties
      conn=5d2c6f95…94ea id=4bff6594…fd04
      2026-05-03T17:56:17.228+08:00 [shutdown] completed cleanly in 2885ms
      2026-05-03T17:56:21.825+08:00 [gateway] loading configuration…
      2026-05-03T17:56:23.993+08:00 [gateway] resolving authentication…
      2026-05-03T17:56:24.013+08:00 [gateway] starting...
      [repeated ~80x, one restart every ~8 seconds]
      ```

    The gateway was killed by SIGTERM at 17:56:14, then kept trying to reload and crashing on config validation.

    Feishu config that triggered the error (channels.feishu)

    ```json
    {
    "enabled": true,
    "dmPolicy": "allowlist",
    "groupPolicy": "allowlist",
    "allowFrom": ["*"],
    "accounts": {
    "main": { "appId": "cli_a9361beb52381bde", "appSecret": "..." },
    "finance": { "appId": "cli_a934dc5be7389de", "appSecret": "..." },
    "research": { "appId": "cli_a94b865a79b9dbb7", "appSecret": "..." },
    "spotlight": { "appId": "cli_a948b11aeb395cc9", "appSecret": "..." },
    "learner": { "appId": "cli_a94893e428395cef", "appSecret": "..." },
    "writer": { "appId": "cli_a94fec6a2d385bc8", "appSecret": "..." },
    "default": {}
    }
    }
    ```

    (appId/appSecret values masked for security)

    Additional note: dmPolicy schema mismatch

    You mentioned in the review that `dmPolicy: "disabled"` is documented but not accepted by the schema. The config above uses `dmPolicy: "allowlist"` (a valid schema value), yet it still triggered "must NOT have additional properties". This suggests the validation error is not about `dmPolicy`, but about which fields are allowed at the `channels.feishu` root level in the 2026.5.2 packaged build specifically.

    Workaround

    Downgrading to 2026.4.22 restores Feishu functionality immediately. The config itself is valid (it worked before upgrade).

    Environment

    • OpenClaw version: 2026.5.2 (canary, installed via npm)
    • Platform: macOS
    • Feishu plugin: @larksuite/openclaw-lark (installed separately at ~/.openclaw/extensions/openclaw-lark/)
  3. fuermos commented on May 4, 2026

    @fuermos

    2026423也是好的,后续版本飞书一直有问题

  4. fuermos commented on May 4, 2026

    @fuermos

    https://multica.ai/ 这个openclaw能否结合使用,或者开发类似功能,目前用飞书agent之间通讯不稳定

  5. barnacle-openclaw commented on May 30, 2026

    @barnacle-openclaw

    This issue has been automatically marked as stale due to inactivity.
    Please add updates or it will be closed.

  6. added
    P1High-priority user-facing bug, regression, or broken workflow.
    impact:crash-loopCrash, hang, restart loop, or process-level availability failure.
    impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.
    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 May 30, 2026
  7. vincentkoc commented on Jun 15, 2026

    @vincentkoc
    Member

    Closing as obsolete after current-main and current external-plugin verification.

    Proof checked against current main (04875efd28): both real config load/write validation paths accept and hydrate the exact reported channels.feishu config. The reported must NOT have additional properties error came from the separately installed @larksuite/openclaw-lark plugin, not bundled Feishu.

    The current published external plugin, @larksuite/openclaw-lark@2026.6.10, also accepts this exact config shape: its top-level and account schemas include appId, appSecret, dmPolicy, allowFrom, groupPolicy, and the other reported fields; it emits an input JSON Schema and declares openclaw >=2026.5.4. The similar external-plugin failure in #57221 was likewise resolved by updating the plugin.

    Supported paths: use bundled Feishu, or upgrade OpenClaw and @larksuite/openclaw-lark together to compatible current versions. Concrete logs from a current compatible pair would justify a new issue or reopening this one.

  8. locked as resolved and limited conversation to collaborators on Jun 25, 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

    P1High-priority user-facing bug, regression, or broken workflow.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.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.no-staleExclude from stale automation

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions