Skip to content

Handle targeted channel messages received as root messages #816

Description

@copilot-swe-agent

Problem

In Teams channels, a targeted message can arrive as a root message. The Teams platform currently does not allow that message to be answered through the normal targeted-reply path, so an SDK response using the provided reply semantics fails and no response is sent.

The response must instead be posted as a new root message in the channel while remaining targeted to the initiating user.

Expected SDK behavior

When handling a targeted channel message, the SDK should determine from the incoming message URL/context whether the message is a root message:

  • For a targeted message in a reply chain, preserve the existing targeted-reply behavior.
  • For a targeted message at the channel root, send the response as a targeted root message rather than as a targeted reply.

This should be handled by the SDK so applications do not need a platform-specific workaround or need to reconstruct the appropriate send URL themselves.

Reproduction

  1. In a Teams channel, send a targeted root message to an agent (for example, invoke the agent from the channel root).
  2. Have the agent respond using the SDK's normal reply mechanism.
  3. Observe that the reply fails and no message is delivered.

Current workaround

Detect that the incoming targeted message is a root message and post a new targeted root message instead of replying to it.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions