Skip to content

[Bot validation] TeamsJS and TeamsFx distinction (2026-09-28) #78

Description

@Alive-Fish

Validation Context

Controlled end-to-end validation requested by the repository owner. This is a synthetic scenario, not a confirmed product defect. Please keep this issue identifiable as a validation artifact rather than citing it as evidence for unrelated issues.

Scenario and Question

Our Teams tab uses @microsoft/teams-js 2.57.0 for app.initialize(), app.getContext() and authentication.getAuthToken(). We do not use TeamsFx. After reading a TeamsFx deprecation notice, we assumed TeamsJS was retired too and tried to replace these client calls with the M365 Agents SDK, but could not find equivalent tab APIs. Is that assumption correct, and is that replacement required?

Activity

  1. atktroubleshootingapp commented on Sep 28, 2026

    @atktroubleshootingapp

    👋 Hi @Alive-Fish,

    Thank you for reporting this issue. Here is an AI-generated initial response:

    Classification: Not a bug — the assumption conflates TeamsFx with TeamsJS; replacing your tab’s TeamsJS calls with the Microsoft 365 Agents SDK is not required.

    • Microsoft’s TeamsJS guidance still recommends TeamsJS for hosted tabs and documents app.initialize() and app.getContext(). Its TeamsFx deprecation notice applies to TeamsFx, not TeamsJS.
    • Tab SSO guidance continues to document authentication.getAuthToken(). The Agents SDK is a framework for conversational agents, not a replacement for those tab-host APIs.

    What to do now:

    1. Keep @microsoft/teams-js for the tab; do not migrate these calls solely because of the TeamsFx notice.
    2. If token acquisition fails, check the tab’s SSO configuration and capture the exact error and host/client details.

    Useful links:


    Note: AI-generated guidance may be incomplete or incorrect. Please verify suggestions before applying them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    AI-generated responseAn AI-generated response has been posted to this issue.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions