diff --git a/docs/manage-sandboxes/messaging-channels.mdx b/docs/manage-sandboxes/messaging-channels.mdx index 56f320c52cc..0045553116d 100644 --- a/docs/manage-sandboxes/messaging-channels.mdx +++ b/docs/manage-sandboxes/messaging-channels.mdx @@ -116,6 +116,7 @@ The client secret is stored as the `-teams-bridge` OpenShell provider a Use `TEAMS_ALLOWED_USERS` or `MSTEAMS_ALLOWED_USERS` to list comma-separated Microsoft Entra ID object IDs that may interact with the bot. For OpenClaw group and channel messages, `TEAMS_REQUIRE_MENTION` defaults to `1`, so the bot replies only when mentioned. Direct messages are unaffected by mention mode. +NemoClaw configures OpenClaw Teams with `channels.msteams.streaming.mode: "off"` so the channel uses final-message delivery while the upstream Teams streaming path can duplicate or collapse preview and final messages. WeChat (experimental) delivers messages over Tencent's iLink gateway through the upstream `@tencent-weixin/openclaw-weixin` plugin installed into WeChat-enabled OpenClaw sandbox images and the built-in Hermes iLink WeChat adapter. The supported mode in this release is **personal WeChat** (`bot_type=3`). diff --git a/src/lib/messaging/channels/manifests.test.ts b/src/lib/messaging/channels/manifests.test.ts index 8d08c248b18..1fad0c61052 100644 --- a/src/lib/messaging/channels/manifests.test.ts +++ b/src/lib/messaging/channels/manifests.test.ts @@ -727,6 +727,7 @@ describe("built-in channel manifests", () => { expect(renderJson(teamsManifest)).toContain('"path":"platforms.teams"'); expect(renderJson(teamsManifest)).toContain("credential.teamsClientSecret.placeholder"); expect(renderJson(teamsManifest)).toContain("teamsConfig.webhookPort"); + expect(renderJson(teamsManifest)).toContain('"streaming":{"mode":"off"}'); expect(renderJson(teamsManifest)).toContain('"groupPolicy":"open"'); expect(renderJson(teamsManifest)).not.toContain("groupAllowFrom"); expectTokenPasteEnrollHook(teamsManifest, ["clientSecret"]); diff --git a/src/lib/messaging/channels/teams/manifest.ts b/src/lib/messaging/channels/teams/manifest.ts index 22ee3e378fd..89d95486399 100644 --- a/src/lib/messaging/channels/teams/manifest.ts +++ b/src/lib/messaging/channels/teams/manifest.ts @@ -126,6 +126,11 @@ export const teamsManifest = { healthMonitor: { enabled: false, }, + // OpenClaw Teams streaming can duplicate or collapse preview and final messages. + // Keep final-only mode until that path is fixed and covered by runtime validation. + streaming: { + mode: "off", + }, dmPolicy: "{{allowedIds.teams.dmPolicy}}", allowFrom: "{{allowedIds.teams.values}}", groupPolicy: "open", diff --git a/src/lib/messaging/compiler/manifest-compiler.test.ts b/src/lib/messaging/compiler/manifest-compiler.test.ts index 8a9633b791b..c1ce2f7733f 100644 --- a/src/lib/messaging/compiler/manifest-compiler.test.ts +++ b/src/lib/messaging/compiler/manifest-compiler.test.ts @@ -564,6 +564,7 @@ describe("ManifestCompiler", () => { }), ); expect(JSON.stringify(plan.agentRender)).toContain('"port":3978'); + expect(JSON.stringify(plan.agentRender)).toContain('"streaming":{"mode":"off"}'); expect(JSON.stringify(plan.agentRender)).toContain('"groupPolicy":"open"'); expect(JSON.stringify(plan.agentRender)).not.toContain("groupAllowFrom"); expect(JSON.stringify(plan.agentRender)).toContain('"requireMention":true'); @@ -595,6 +596,7 @@ describe("ManifestCompiler", () => { disabled: false, }); expect(JSON.stringify(plan.agentRender)).toContain("channels.msteams"); + expect(JSON.stringify(plan.agentRender)).toContain('"streaming":{"mode":"off"}'); expect(JSON.stringify(plan.agentRender)).toContain('"groupPolicy":"open"'); expect(JSON.stringify(plan.agentRender)).not.toContain("dmPolicy"); expect(JSON.stringify(plan.agentRender)).not.toContain("allowFrom");