Repository navigation
Add optional Feishu and Lark messaging - #74
Open
JeffPengCoder wants to merge 3 commits into
Open
JeffPengCoder wants to merge 3 commits into
JeffPengCoder wants to merge 3 commits into
Conversation
Signed-off-by: Jeff Peng <jepeng@nvidia.com>
JeffPengCoder
requested review from
RohanAdwankar and
kgengedullay
as code owners
October 29, 2026 00:55
This was referenced Oct 30, 2026
Signed-off-by: Jeff Peng <jepeng@nvidia.com>
Signed-off-by: Jeff Peng <jepeng@nvidia.com>
This was referenced Nov 2, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add optional Feishu/Lark messaging through OpenClaw's official Feishu plugin, pinned to 2026.6.10 to match the chart runtime. Operators can use bot DMs or mentions in explicitly allowed groups over an outbound WebSocket connection, without exposing a callback endpoint.
Bot credentials come from an existing Kubernetes Secret. Require explicit user IDs, restrict group IDs and senders, isolate group conversations by sender, and preserve Slack when both channels are enabled. Disable Feishu workplace/document tools so enabling messaging does not add a second tool surface. Document platform setup and delivery/access-control acceptance checks, and refresh the bundled agent documentation. New conversations follow the existing View policy; the existing Edit approval behavior is unchanged.
The initialization follow-up supplies all enabled Feishu/Slack credential references to every init container that invokes the OpenClaw CLI: Feishu, Slack, Brave web search, and OpenShell installers when present, as well as the gateway. These commands read the shared
openclaw.json. Previously, the OpenShell initializer had neitherFEISHU_APP_IDnorFEISHU_APP_SECRETdespite those variables being referenced in the enabled channel config. Use a shared Helm helper so the gateway and installers resolve the same Secret names/keys, including when Slack and Feishu are enabled together. Credentials remain KubernetessecretKeyRefentries, with no credential values copied into the seed ConfigMap.Merge upstream main and retain both Feishu validation and the newer upstream Redfish validation; regenerate the documentation bundle from the combined Markdown. The generic default-agent display-name option is submitted independently in PR #87.
Validation
Current source branch after merging upstream main:
node --test utils/*.test.mjs helm/mosaic-stack/tests/*.test.mjs tests/docs/*.test.mjs: 230 passed, 0 failed, 2 optional integration tests skipped (OpenClaw runtime memory and live VictoriaMetrics).node --test helm/afoa-inference/tests/*.test.mjs: 4 passed.helm lint helm/mosaic-stackandhelm lint helm/afoa-inference: passed.python3 docs/package_agent_docs.py --check: passed.sphinx-build -W --keep-going -q -b html -c docs . docs/_build/html: passed with no warnings.git diff --check: passed.The new semantic regression test first reproduced the missing Feishu environment references in
init-openshell-plugin. It now parses the rendered YAML and compares every OpenClaw CLI container's channel environment entries against the variables referenced by the complete rendered channel config. Covers channels disabled, Feishu only, Slack only, both together, and both with Brave and custom Secret names/key names. Separately compared the complete default OpenClaw JSON and Pod specification with upstream main; both are identical when channels are disabled.Live Spark acceptance on 2026-11-01 used a deployed chart backport and the real Feishu application, with OpenClaw/Feishu 2026.6.10:
Bot DMs, negative user/group/mention cases, and a dedicated post-restart real-message check remain operator acceptance steps in the guide. Slack/Brave coexistence is covered by source rendering regression tests; this update does not claim a live Slack/Brave messaging test. The source update itself was validated locally and was not redeployed over the working Spark installation.
Checklist
Additional real channel acceptance — 2026-11-02
This dated update supersedes the earlier pending DM/rebuild items. Full commands, all policy replay rows, original replies and failures are preserved in the companion documentation PR #1, especially
docs/spark_background_gpu_alert_native_feishu_20261102.zh-CN.mdand the dual-mode Feishu runbook section 17.da7cec2b-b7f7-4c1c-b733-dd3f1a209bcato new UID02fad834-25b3-4e87-bfa5-dad4f58876c5. App Secret fingerprints, display identity and allowlists were preserved. Real DM and group mention both received model-generated replies afterward (feishu-extra-20261102-restart-dm,feishu-extra-20261102-restart-group).230027because the app lacks that read scope. We did not broaden permissions or claim that the missing event proves local plugin rejection.bg-gpu-20261102t005029z/ incident2803c2516df6ec7c3eed3f2f. Restarting the completed worker while the same alert remained firing produced no new investigation or send.This update adds validation evidence, not further source changes to #74.