From a3ae353f0ef8a557179baf7acebf75c1fe3f332b Mon Sep 17 00:00:00 2001 From: San Dang Date: Mon, 29 Jun 2026 21:41:26 +0700 Subject: [PATCH 1/3] fix(messaging): disable Teams streaming by default Signed-off-by: San Dang --- docs/manage-sandboxes/messaging-channels.mdx | 2 ++ src/lib/messaging/channels/manifests.test.ts | 1 + src/lib/messaging/channels/teams/manifest.ts | 3 +++ src/lib/messaging/compiler/manifest-compiler.test.ts | 2 ++ 4 files changed, 8 insertions(+) diff --git a/docs/manage-sandboxes/messaging-channels.mdx b/docs/manage-sandboxes/messaging-channels.mdx index 56f320c52cc..1643edcc105 100644 --- a/docs/manage-sandboxes/messaging-channels.mdx +++ b/docs/manage-sandboxes/messaging-channels.mdx @@ -278,6 +278,8 @@ MSTEAMS_APP_ID= \ After the rebuild starts the Teams webhook forward, route your public HTTPS endpoint to `http://127.0.0.1:3978/api/messages` or the port you selected with `MSTEAMS_PORT`. If `channels add teams` reports that another sandbox already uses the same Teams webhook port, choose another `MSTEAMS_PORT` for one sandbox or stop and remove the conflicting sandbox. +For OpenClaw sandboxes, NemoClaw renders `channels.msteams.streaming.mode: "off"` by default so Teams receives one final message instead of relying on the native Teams streaming preview/final collapse path. + ### `channels add wechat` `channels add wechat` (experimental) follows the same shape as the other channels with two differences driven by the iLink QR handshake. 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..74b9d8b425b 100644 --- a/src/lib/messaging/channels/teams/manifest.ts +++ b/src/lib/messaging/channels/teams/manifest.ts @@ -126,6 +126,9 @@ export const teamsManifest = { healthMonitor: { enabled: false, }, + 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"); From 63a9209b528d1800f5a3621b532d892ef22ec000 Mon Sep 17 00:00:00 2001 From: San Dang Date: Mon, 29 Jun 2026 22:58:23 +0700 Subject: [PATCH 2/3] docs(messaging): remove Teams streaming note Signed-off-by: San Dang --- docs/manage-sandboxes/messaging-channels.mdx | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/manage-sandboxes/messaging-channels.mdx b/docs/manage-sandboxes/messaging-channels.mdx index 1643edcc105..56f320c52cc 100644 --- a/docs/manage-sandboxes/messaging-channels.mdx +++ b/docs/manage-sandboxes/messaging-channels.mdx @@ -278,8 +278,6 @@ MSTEAMS_APP_ID= \ After the rebuild starts the Teams webhook forward, route your public HTTPS endpoint to `http://127.0.0.1:3978/api/messages` or the port you selected with `MSTEAMS_PORT`. If `channels add teams` reports that another sandbox already uses the same Teams webhook port, choose another `MSTEAMS_PORT` for one sandbox or stop and remove the conflicting sandbox. -For OpenClaw sandboxes, NemoClaw renders `channels.msteams.streaming.mode: "off"` by default so Teams receives one final message instead of relying on the native Teams streaming preview/final collapse path. - ### `channels add wechat` `channels add wechat` (experimental) follows the same shape as the other channels with two differences driven by the iLink QR handshake. From f1d56f45d757afc0c60dacb2065e7582d39cac1c Mon Sep 17 00:00:00 2001 From: Carlos Villela Date: Mon, 29 Jun 2026 21:09:14 -0700 Subject: [PATCH 3/3] docs(messaging): explain Teams streaming default --- docs/manage-sandboxes/messaging-channels.mdx | 1 + src/lib/messaging/channels/teams/manifest.ts | 2 ++ 2 files changed, 3 insertions(+) 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/teams/manifest.ts b/src/lib/messaging/channels/teams/manifest.ts index 74b9d8b425b..89d95486399 100644 --- a/src/lib/messaging/channels/teams/manifest.ts +++ b/src/lib/messaging/channels/teams/manifest.ts @@ -126,6 +126,8 @@ 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", },