Repository navigation
Closed as not planned
Closed as not planned
Copy link
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.no-staleExclude from stale automationExclude from stale automation
Description
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
- Upgrade OpenClaw from 2026.4.x to 2026.5.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
Reacted by clawsweeper
Reacted by Jiayi Yan and clawsweeper
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.no-staleExclude from stale automationExclude from stale automation
Type
Fields
Priority
None yet
Activity
clawsweeper commentedon May 4, 2026
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:
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:
What I checked:
src/channels/plugins/config-schema.ts:147, a189baa4b344)src/channels/plugins/config-schema.test.ts:23, a189baa4b344)src/config/validation.ts:322, a189baa4b344)src/config/validation.ts:913, a189baa4b344)extensions/feishu/src/config-schema.ts:183, a189baa4b344)Likely related people:
src/channels/plugins/config-schema.ts,src/channels/plugins/config-schema.test.ts,src/config/bundled-channel-config-metadata.generated.ts)src/channels/plugins/config-schema.ts,extensions/feishu/src/config-schema.ts)extensions/feishu/package.json)src/channels/plugins/config-schema.ts,src/config/bundled-channel-config-metadata.generated.ts)extensions/feishu/src/config-schema.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.lyh-github-97 commentedon May 4, 2026
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:
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
fix(channels): pass io:input to toJSONSchema so optional-with-default…
fuermos commentedon May 4, 2026
2026423也是好的,后续版本飞书一直有问题
fuermos commentedon May 4, 2026
https://multica.ai/ 这个openclaw能否结合使用,或者开发类似功能,目前用飞书agent之间通讯不稳定
barnacle-openclaw commentedon May 30, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
vincentkoc commentedon Jun 15, 2026
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 reportedchannels.feishuconfig. The reportedmust NOT have additional propertieserror came from the separately installed@larksuite/openclaw-larkplugin, 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 includeappId,appSecret,dmPolicy,allowFrom,groupPolicy, and the other reported fields; it emits an input JSON Schema and declaresopenclaw >=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-larktogether to compatible current versions. Concrete logs from a current compatible pair would justify a new issue or reopening this one.