Skip to content

Conversation

@rannp-toro-cloud
Copy link
Contributor

@rannp-toro-cloud rannp-toro-cloud commented Dec 3, 2025

What it does

This PR ensures that when a chat session is deleted, a new active session is automatically created if the deleted session was the active one. This prevents the Chat UI from being left with an unusable active session after deletion.

Deleting the last item that is an active session from the quick pick will automatically set the focus on the Chat view.

2025-12-04 00-09-12 2025-12-04 00_11_42

Fixes #16697

How to test

  1. Create two chat sessions with messages so that they are visible in the chat history.
  2. Click the Show Chats... button.
  3. In the quick pick list, remove the active session. A new blank session should appear in the Chat view, and the focus should remain in the quick pick.
  4. Click the remaining item in the quick pick to activate it.
  5. Click the Show Chats... button again.
  6. Remove the remaining item in the quick pick.
  7. A new blank chat session should appear again, and the input in the chat view should be automatically focused.

Attribution

Contributed on behalf of Lonti.com Pty Ltd

Review checklist

Reminder for reviewers

@github-project-automation github-project-automation bot moved this to Waiting on reviewers in PR Backlog Dec 3, 2025
Contributed on behalf of Lonti.com Pty Ltd

Signed-off-by: Rannie Peralta <[email protected]>
@rannp-toro-cloud rannp-toro-cloud force-pushed the fix-deleted-active-ai-chat-session-remains-visible branch from af79c6b to a3dbee5 Compare December 4, 2025 08:07
@ndoschek ndoschek requested a review from sdirix December 4, 2025 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Waiting on reviewers

Development

Successfully merging this pull request may close these issues.

Deleted active AI chat session remains visible

1 participant