Skip to content

fix(chat): preserve Session Target when creating new chat sessions (fixes #295071)#295297

Open
hengsongds wants to merge 2 commits intomicrosoft:mainfrom
hengsongds:fix-session-target-reset-295071
Open

fix(chat): preserve Session Target when creating new chat sessions (fixes #295071)#295297
hengsongds wants to merge 2 commits intomicrosoft:mainfrom
hengsongds:fix-session-target-reset-295071

Conversation

@hengsongds
Copy link

This PR fixes issue #295071 by preserving the current Session Target when creating new chat sessions.

The current implementation of SendToNewChatAction resets the Session Target to 'Local' when creating a new chat session, which is unexpected behavior for users who have switched to Claude, Background, or Cloud targets.

Changes:

  • Save the current Session Target before clearing the widget
  • Restore the Session Target after creating the new session
  • Ensures consistent user experience across session transitions

Fixes #295071

@hengsongds
Copy link
Author

I am an individual contributor and have reviewed the Microsoft CLA. I confirm that I own all rights to this contribution and am authorized to submit it under the terms of the agreement. Please let me know if there are any issues with the CLA process.

@hengsongds
Copy link
Author

@microsoft-github-policy-service agree

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.

Create new session tip resets Session Target to Local

2 participants