unstale

npm / @microsoft/agents-hosting

@microsoft/agents-hosting

What changed in @microsoft/agents-hosting 1, from its official release notes, upgrade guides and advisories. Also covers @microsoft/agents-activity. Sources checked 2026-10-18.

12 breaking1 deprecations9 new APIs and options5 behavior and defaults18 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.1.1 on npm

@microsoft/agents-hosting 145 changes

Breaking changes 12

  • M365AttachmentDownloader replaces TeamsAttachmentDownloader.

    1.3.1release notes

  • The ready state is not signaled until the first conversation ID is received.

    1.2.0release notes

  • Removed from AgentApplication authorization.

    1.1.1release notes

  • Removed from AgentApplication authorization.

    1.1.1release notes

  • Now requires botAppIdOrIdentity as its first argument: the agent app ID or a JwtPayload from the incoming request.

    1.1.1release notes

  • Removed as a CloudAdapter member; retrieve it from turncontext.turnstate using adapter.ConnectorClientKey.

    1.1.1release notes

  • Now requires botAppIdOrIdentity as its first argument: the agent app ID or a JwtPayload from the incoming request.

    1.1.1release notes

  • Now requires a TurnContext as its first argument.

    1.1.1release notes

  • Now requires a TurnContext as its first argument.

    1.1.1release notes

  • Now requires a TurnContext as its first argument.

    1.1.1release notes

  • Removed as a CloudAdapter member; retrieve it from turncontext.turnstate using adapter.UserTokenClientKey.

    1.1.1release notes

  • The oAuthFlow class was removed.

    1.1.1release notes

Deprecations 1

  • The legacy Teams extension package is deprecated but remains available for backward compatibility; existing applications can migrate when convenient.

    1.7.2release notes

New APIs and options 9

  • Updated APIs cover Teams activities, meetings, messaging extensions, task modules, file consent, and proactive messaging.

    1.7.2release notes

  • Activity.toJsonString() accepts a custom replacer.

    1.3.1release notes

  • TeamsAttachmentDownloader was added to Core.

    1.2.0release notes

  • Initial support for Microsoft Agent ID was added.

    1.1.1release notes

  • Configure multiple parallel application identities and map connections to service URLs; existing settings automatically create a default Connection when configuration is unchanged.

    1.1.1release notes

  • Now accepts a JwtPayload.

    1.1.1release notes

  • Copilot Studio client can stream returned Activities as they arrive using an AsyncGenerator.

    1.1.1release notes

  • Adds a streaming version of startConversationAsync that returns Activities as they arrive using an AsyncGenerator.

    1.1.1release notes

  • Overrides the UserTokenClient API endpoint through an environment variable.

    1.1.1release notes

Behavior and default changes 5

  • UserTokenService requests now include a CorrelationID header.

    1.3.1release notes

  • TurnContext methods now validate activities with Zod.

    1.3.1release notes

  • Scopes are included in the agentic token cache key.

    1.2.0release notes

  • StreamingResponse now supports non-streaming channels.

    1.2.0release notes

  • Token acquisition logic for agentic scenarios was updated.

    1.2.0release notes

Fixes and other changes 18

  • Error reporting is improved.

    1.7.2release notes

  • Recipient routing for targeted activities is fixed.

    1.7.2release notes

  • Teams client setup is improved.

    1.7.2release notes

  • For M365 Copilot Web, OAuth token exchange uses the base channel instead of the composite channelId, fixing sign-in behavior.

    1.5.3release notes

  • Resolves an issue where background token exchanges could sometimes cause a timeout.

    1.4.2release notes

  • Fixes Choice Prompt index recognition, which did not work.

    1.3.1release notes

  • CosmosDB storage error messages now provide actionable context.

    1.3.1release notes

  • Fixes a consent error when using MS Teams with Copilot.

    1.3.1release notes

  • Addresses differences in returned value types between Botbuilder v3/v4 and the Microsoft 365 Agents SDK.

    1.3.1release notes

  • Corrects x5c certificate loading.

    1.3.1release notes

  • Fixes the consent flow for Copilot in Teams.

    1.2.3release notes

  • Fixes the TeamsInfo class, which had been broken since 1.1.

    1.2.3release notes

  • Fixed prompt appendChoices support for the heroCard style.

    1.2.0release notes

  • Backwards compatibility was added for the Copilot Studio Client.

    1.2.0release notes

  • Fixed FIC authentication for agentic scenarios.

    1.2.0release notes

  • MsalTokenProvider was updated to match the AuthProvider interface.

    1.2.0release notes

  • Fixed onTurn so its handler is called for every activity.

    1.2.0release notes

  • A behavior change in streaming was fixed.

    1.2.0release notes