Skip to content

Add conditional check for FinalMessage in activity.Text #339

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 25, 2025

Conversation

MattB-msft
Copy link
Member

Updated the logic to set activity.Text only when FinalMessage is null. This prevents overwriting the text if FinalMessage is already provided, ensuring the correct message is displayed.

Updated the logic to set `activity.Text` only when `FinalMessage` is null. This prevents overwriting the text if `FinalMessage` is already provided, ensuring the correct message is displayed.
@Copilot Copilot AI review requested due to automatic review settings June 25, 2025 16:38
@MattB-msft MattB-msft requested a review from a team as a code owner June 25, 2025 16:38
@github-actions github-actions bot added the ML: Core Tags changes to core libraries label Jun 25, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request adds a conditional check when setting activity.Text to ensure that it is only updated when FinalMessage is null, thereby preventing unwanted overwrites.

  • Introduces an if block to conditionally update activity.Text.
  • Maintains the existing activity properties and behavior when FinalMessage is provided.

@MattB-msft MattB-msft merged commit b1622f4 into main Jun 25, 2025
8 of 9 checks passed
@MattB-msft MattB-msft deleted the users/mbarbour/FixNoTextStreamedBug branch June 25, 2025 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ML: Core Tags changes to core libraries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants