feat: Phase 2a — Multi-session support#38
Merged
cirvine-MSFT merged 1 commit intomainfrom Mar 8, 2026
Merged
Conversation
Add concurrent chat session support to the Brain and session switching UI to the Web client. Brain changes: - Enrich SessionInfo with Title, Status, LastActivity, MessageCount - CopilotEngine auto-generates session titles with dedup suffixes - SendPromptAsync tracks busy/idle status and message counts - DestroySessionAsync returns bool (true=found, false=not-found) - New RenameSessionAsync method with title length validation - Thread-safe MessageCount via Interlocked operations Web UI changes: - Rich session cards with agent icon, title, status dot, meta info - Inline rename on double-click (Enter/Escape/blur) - Destroy confirmation modal with busy-state warning - SignalR push events for cross-tab sync (SessionCreated/Destroyed/Updated) - syncSessions() on connect/reconnect for state reconciliation - HTML-escaped titles in modal to prevent XSS ChatHub changes: - DestroySession and RenameSession methods with error handling - SessionCreated/SessionDestroyed/SessionUpdated broadcasts - SendMessage broadcasts SessionUpdated to other clients Tests: - 18 new multi-session tests covering auto-title, status tracking, message counts, destroy/rename, enriched listing, concurrency Closes #12, closes #14 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Phase 2a — Multi-Session Support
Adds concurrent chat session support to the Brain and session switching UI to the Web client.
Changes
Brain (CopilotEngine + JsonRpcServer):
Web UI (index.html):
ChatHub:
Tests:
Closes #12, closes #14