Skip to content

Conversation

@sandorsett
Copy link

fixes #286724
This change implements a new option so callers can submit a chat request and immediately return the UI to an empty/new chat view (submit in background). It addresses https://github.com//issues/286724.

Adds IChatAcceptInputOptions.sendToNewChat?: boolean.
When set, ChatWidget captures the session, cancels any in-flight request for that session, clears the widget (returns UI to empty chat), and submits the request to the original session resource in the background.
Updates SendToNewChatAction to delegate to widget.acceptInput(..., { sendToNewChat: true }) instead of manual clear+submit.
Adds unit tests validating delegation and the _acceptInput send+clear behavior.

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.

Chat: support an action to send a chat request and clear widget

2 participants