Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Comments

fix: conditional show message toolbar#7524

Merged
urmauur merged 2 commits intomainfrom
fix/message-toolbar
Feb 13, 2026
Merged

fix: conditional show message toolbar#7524
urmauur merged 2 commits intomainfrom
fix/message-toolbar

Conversation

@urmauur
Copy link
Member

@urmauur urmauur commented Feb 13, 2026

Describe Your Changes

Issue when u cancel streaming and message does not contain message part type text, me just need conditional based message role assistant

Before

Screenshot 2026-02-13 at 10 08 26 Screenshot 2026-02-13 at 10 08 31

After fix

Screenshot 2026-02-13 at 10 09 53 Screenshot 2026-02-13 at 10 11 36

Fixes Issues

  • Closes #
  • Closes #

Self Checklist

  • Added relevant comments, esp in complex areas
  • Updated docs (for bug fixes / features)
  • Created issues for follow-up changes or refactoring needed

@urmauur urmauur self-assigned this Feb 13, 2026
Copilot AI review requested due to automatic review settings February 13, 2026 03:19
louis-jan
louis-jan previously approved these changes Feb 13, 2026
Copy link
Contributor

@louis-jan louis-jan left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

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 PR fixes an issue where the message toolbar was not displayed for assistant messages that lacked text content (e.g., when streaming was cancelled before text generation, or when messages only contained tool calls or reasoning). The fix removes the text content check from the conditional rendering logic, allowing the toolbar to be shown for all assistant messages regardless of content type.

Changes:

  • Simplified the conditional rendering of the message toolbar for assistant messages by removing the check that required text content with non-zero length

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2026

Copy link
Contributor

@louis-jan louis-jan left a comment

Choose a reason for hiding this comment

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

LGTM

@urmauur urmauur merged commit 5a4ea1b into main Feb 13, 2026
17 checks passed
@urmauur urmauur deleted the fix/message-toolbar branch February 13, 2026 06:25
@github-project-automation github-project-automation bot moved this to QA in Jan Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: QA

Development

Successfully merging this pull request may close these issues.

2 participants