Skip to content

fix: reset chat input character count on "New Topic" button click#398

Merged
Prajwal-Microsoft merged 1 commit intodevfrom
PSL-BUG-19259
Jun 17, 2025
Merged

fix: reset chat input character count on "New Topic" button click#398
Prajwal-Microsoft merged 1 commit intodevfrom
PSL-BUG-19259

Conversation

@Prasanjeet-Microsoft
Copy link
Copy Markdown
Contributor

Purpose

  • This PR addresses a bug where the chat input box token counter did not reset when starting a new topic

    Changes:

    • Added a dynamic 'key' to the Textarea to force remount and reset internal state on new topic.
    • Ensured 'textAreaValue' is cleared on new topic click.
  • This ensures consistent behavior for users when they start a new chat session.

Does this introduce a breaking change?

  • Yes
  • No

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

What to Check

Verify that the following are valid:

  1. When you click the "+" (New Topic) button:

    • The input text area is cleared (no residual text remains).
    • The character/token counter displays 0/500.
  2. After starting a new topic:

    • Typing into the input box correctly updates the counter from 0/500 upwards.
    • Ensure no console errors or warnings appear during this interaction.

@Prajwal-Microsoft Prajwal-Microsoft merged commit c9ae76b into dev Jun 17, 2025
5 checks passed
@Prasanjeet-Microsoft Prasanjeet-Microsoft deleted the PSL-BUG-19259 branch July 3, 2025 19:45
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants