Skip to content

Commit 55a5ad8

Browse files
committed
MS Teams: harden messageBack card action forwarding
1 parent ff57b11 commit 55a5ad8

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ Docs: https://docs.openclaw.ai
187187

188188
### Fixes
189189

190+
- MS Teams: forward messageBack card action payloads to the agent instead of dropping empty-text card submit activities. (#64503) Thanks @ndholakia.
190191
- Cron/agents: recognize same-target `edit`↔`write` recovery in `isSameToolMutationAction`, so a successful `write` to a path clears an earlier failed `edit` on the same path. Stops cron from reporting fatal failures when an agent self-heals across `edit` and `write`, while preserving same-tool fingerprint matching, blocking different-target writes, and excluding tools (including `apply_patch`) whose real call args do not produce a stable `path` fingerprint segment. Fixes #79024. Thanks @RenzoMXD.
191192
- Gateway/Tailscale: add opt-in `gateway.tailscale.preserveFunnel` so when `tailscale.mode = "serve"` and an externally configured Tailscale Funnel route already covers the gateway port, OpenClaw skips re-applying `tailscale serve` on startup and skips the `resetOnExit` teardown for that run, keeping operator-managed Funnel exposure alive across gateway restarts. Fixes #57241. Thanks @RenzoMXD.
192193
- Agents/compaction: keep the recent tail after manual `/compact` when Pi returns an empty or no-op compaction summary, preventing blank checkpoints from replacing the live context.

extensions/msteams/src/monitor-handler/message-handler.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,7 @@ export function createMSTeamsMessageHandler(deps: MSTeamsMessageHandlerDeps) {
204204
maxInlineBytes: mediaMaxBytes,
205205
maxInlineTotalBytes: mediaMaxBytes,
206206
});
207-
// If text and attachments are both empty but activity.value is present,
208-
// this is a messageBack card action (Action.Submit). Serialize the value
209-
// payload so it reaches the agent instead of being dropped. (#60952)
210-
// Accept any truthy value — object, string, or primitive — since
211-
// messageBack payloads are not guaranteed to be objects.
207+
// Forward messageBack card action payloads instead of dropping empty text.
212208
let rawBody = text || attachmentPlaceholder;
213209
if (!rawBody && activity.value != null) {
214210
try {
@@ -221,7 +217,7 @@ export function createMSTeamsMessageHandler(deps: MSTeamsMessageHandlerDeps) {
221217
});
222218
}
223219
} catch {
224-
log.warn("failed to serialize messageBack value payload");
220+
log.warn?.("failed to serialize messageBack value payload");
225221
}
226222
}
227223
const quoteInfo = extractMSTeamsQuoteInfo(attachments);

0 commit comments

Comments
 (0)