fix: added test coverage for bug 34655 fix#728
Merged
Avijit-Microsoft merged 9 commits intodevfrom Feb 20, 2026
Merged
Conversation
- test_title_service.py: 21 tests covering fallback title, AI-generated title, singleton factory, edge cases (empty/None/whitespace, agent errors) - test_cosmos_service.py: 21 tests covering add_message generated_title handling, metadata merge preserving titles, title resolution priority chain, rename_conversation, delete_all_conversations - test_app_endpoints.py: 15 tests covering /api/brief/parse and /api/chat title generation flow, conversation CRUD (list/rename/delete/delete-all) - conftest.py: test configuration with env vars setup and sys.path for CI
… New Conversation default)
Avijit-Microsoft
approved these changes
Feb 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces automatic, AI-generated conversation titles for chat sessions, enhancing both the backend and frontend to support, store, and display these titles. The changes ensure that new conversations are given concise, meaningful titles based on the user's first message, and that these titles are consistently used and preserved throughout the application.
Backend: AI Title Generation and Storage
TitleService(title_service.py) that uses Azure OpenAI to generate concise, 4-word-or-less titles for conversations based on the initial user message, with robust fallback logic if the AI is unavailable.app.py) to call the title service when a new conversation is started or when a brief is parsed, storing the generated title in the conversation metadata only if no custom or existing generated title is present. [1] [2] [3] [4] [5] [6]cosmos_service.py) to merge and preserve both generated and custom titles in conversation metadata, and to only set a generated title if one does not already exist. [1] [2] [3] [4]Frontend: Title Usage and Display
App.tsx) to track and update the current conversation title, retrieving it from the backend and passing it to the chat history component for display. [1] [2] [3] [4] [5] [6]ChatHistory.tsx) to accept and display the current conversation title, using it in the conversation summary if available. [1] [2] [3]Does this introduce a breaking change?
Golden Path Validation
Deployment Validation
What to Check
Verify that the following are valid
Other Information
[Copilot is generating a summary...]