Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds support for Teams “custom feedback” loops by introducing a feedbackLoop channelData configuration (default vs custom), adding a new message/fetchTask invoke activity model + Apps handler registration, and updating the AI sample to demonstrate a custom feedback dialog flow.
Changes:
- Add
FeedbackLoop/FeedbackTypemodels and normalize legacyfeedbackLoopEnabledintofeedbackLoop. - Add
message/fetchTaskinvoke activity support (API model + Apps routing extension + deserialization support). - Update Samples.AI to use
FeedbackType.Customand return a task module dialog; add Apps tests for the new handler.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| Tests/Microsoft.Teams.Apps.Tests/Activities/Invokes/Messages/FetchTaskActivityTests.cs | Adds coverage to ensure OnMessageFetchTask routes and handlers are invoked correctly. |
| Samples/Samples.AI/Samples.AI.csproj | Adds Cards project reference needed to build adaptive cards for the custom dialog. |
| Samples/Samples.AI/Program.cs | Registers OnMessageFetchTask handler for custom feedback dialogs. |
| Samples/Samples.AI/Handlers/FeedbackHandler.cs | Switches sample to FeedbackType.Custom and builds a task module adaptive card for feedback. |
| Libraries/Microsoft.Teams.Apps/Activities/Invokes/Messages/FetchTaskActivity.cs | Adds attribute + OnMessageFetchTask route registration for message/fetchTask. |
| Libraries/Microsoft.Teams.Api/FeedbackLoop.cs | Introduces FeedbackType string enum + FeedbackLoop configuration model. |
| Libraries/Microsoft.Teams.Api/ChannelData.cs | Adds feedbackLoop property and documents legacy feedbackLoopEnabled. |
| Libraries/Microsoft.Teams.Api/Activities/Invokes/Messages/FetchTaskActivity.cs | Adds the message/fetchTask activity model + reaction payload types. |
| Libraries/Microsoft.Teams.Api/Activities/Invokes/MessageActivity.cs | Updates message invoke polymorphic (de)serialization to include fetchTask. |
| Libraries/Microsoft.Teams.Api/Activities/Activity.cs | Normalizes feedback fields during WithData(ChannelData) and adds AddFeedback(FeedbackType) overload. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
singhk97
approved these changes
Apr 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Custom Feedback Context:
Learn Doc