Skip to content

fix(msteams): correct typing indicator sendActivity call#1810

Merged
shakkernerd merged 3 commits intoopenclaw:mainfrom
Alg0rix:main
Jan 27, 2026
Merged

fix(msteams): correct typing indicator sendActivity call#1810
shakkernerd merged 3 commits intoopenclaw:mainfrom
Alg0rix:main

Conversation

@Alg0rix
Copy link
Contributor

@Alg0rix Alg0rix commented Jan 25, 2026

Summary

Typing indicators in Microsoft Teams are now correctly sent as a single typing activity, ensuring the typing status is shown consistently to users.

Problem

Previously, the dispatcher used sendActivities to send a typing indicator, which did not correctly surface the typing status in Microsoft Teams.
As a result, users would not see a typing indicator even when the bot was actively composing a response.

Changes

Updated createMSTeamsReplyDispatcher in reply-dispatcher.ts to use sendActivity instead of sendActivities when sending a typing indicator.
This aligns the typing behavior with the expected Bot Framework API usage for single typing events in Microsoft Teams and fixes an issue where the typing indicator was not displayed.

Test Plan

Verified that sending a reply which triggers a typing event now results in a visible typing indicator in a Microsoft Teams conversation.

@sebslight sebslight added the channel: msteams Channel integration: msteams label Jan 26, 2026
const core = getMSTeamsRuntime();
const sendTypingIndicator = async () => {
await params.context.sendActivities([{ type: "typing" }]);
await params.context.sendActivity([{ type: "typing" }]);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sendActivity method only takes in an activity object and not an array of activity objects.

shakkernerd added a commit that referenced this pull request Jan 27, 2026
@shakkernerd shakkernerd merged commit 761cb01 into openclaw:main Jan 27, 2026
21 of 23 checks passed
zooqueen pushed a commit to hanzoai/bot that referenced this pull request Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: msteams Channel integration: msteams

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants